class OAuth2::Strategy::Password

@see datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-15#section-4.3<br><br>The Resource Owner Password Credentials Authorization Strategy

def authorize_url

Raises:
  • (NotImplementedError) -
def authorize_url
  raise(NotImplementedError, 'The authorization endpoint is not used in this strategy')
end

def get_token(username, password, params = {}, opts = {})

Parameters:
  • params (Hash) -- additional params
  • password (String) -- the End User password
  • username (String) -- the End User username
def get_token(username, password, params = {}, opts = {})
  params = {'grant_type' => 'password',
            'username' => username,
            'password' => password}.merge(params)
  @client.get_token(params, opts)
end