Method: ADAL::AuthenticationContext#acquire_token_with_refresh_token

Defined in:
lib/adal/authentication_context.rb

#acquire_token_with_refresh_token(refresh_token, client_cred, resource = nil) ⇒ Object

Gets an access token using a previously acquire refresh token.

Parameters:

  • String

    refresh_token The previously acquired refresh token.

  • String|ClientCredential|ClientAssertion|ClientAssertionCertificate

    The client application can be validated in four different manners, depending on the OAuth flow. This object must support #request_params.

Returns:

  • TokenResponse



113
114
115
116
117
118
# File 'lib/adal/authentication_context.rb', line 113

def acquire_token_with_refresh_token(
  refresh_token, client_cred, resource = nil)
  fail_if_arguments_nil(refresh_token, client_cred)
  token_request_for(client_cred)
    .get_with_refresh_token(refresh_token, resource)
end