class OmniAuth::Strategies::Okta
Constants
- DEFAULT_SCOPE
Public Instance Methods
access_token()
click to toggle source
# File lib/omniauth/strategies/okta.rb, line 58 def access_token if oauth2_access_token ::OAuth2::AccessToken.new(client, oauth2_access_token.token, { refresh_token: oauth2_access_token.refresh_token, expires_in: oauth2_access_token.expires_in, expires_at: oauth2_access_token.expires_at }) end end
Also aliased as: oauth2_access_token
callback_url()
click to toggle source
# File lib/omniauth/strategies/okta.rb, line 74 def callback_url options[:redirect_uri] || (full_host + callback_path) end
client_options()
click to toggle source
# File lib/omniauth/strategies/okta.rb, line 52 def client_options options.fetch(:client_options) end
raw_info()
click to toggle source
# File lib/omniauth/strategies/okta.rb, line 68 def raw_info @_raw_info ||= access_token.get(client_options.fetch(:user_info_url)).parsed || {} rescue ::Errno::ETIMEDOUT raise ::Timeout::Error end
validated_token(token)
click to toggle source
# File lib/omniauth/strategies/okta.rb, line 102 def validated_token(token) JWT.decode(token, nil, false, verify_iss: true, verify_aud: true, iss: authorization_server_path, aud: authorization_server_audience, verify_sub: true, verify_expiration: true, verify_not_before: true, verify_iat: true, verify_jti: false, leeway: options[:jwt_leeway] ).first end