class OAuth2::Strategy::Password
The Resource Owner Password
Credentials Authorization Strategy
@see datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-15#section-4.3
Public Instance Methods
Source
# File lib/oauth2/strategy/password.rb 21 def get_token(username, password, params = {}, opts = {}) 22 params = { 23 "grant_type" => "password", 24 "username" => username, 25 "password" => password, 26 }.merge(params) 27 @client.get_token(params, opts) 28 end
Retrieve an access token given the specified End User username and password.
@param [String] username the End User username @param [String] password the End User password @param [Hash] params additional params