Method: Ape::GoogleLoginCredentials#add_credentials
- Defined in:
- lib/ape/auth/google_login_credentials.rb
#add_credentials(req, auth, user, password) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/ape/auth/google_login_credentials.rb', line 27 def add_credentials(req, auth, user, password) unless @credentials challenge = parse_www_authenticate(auth) @credentials = googlelogin(username, password, 'ruby-ape-1.0', challenge) end req['Authorization'] = "GoogleLogin auth=#{@credentials}" end |