Class: MicrosoftKiotaAuthenticationOAuth::OAuthContext
- Inherits:
-
Object
- Object
- MicrosoftKiotaAuthenticationOAuth::OAuthContext
- Includes:
- OAuthCustomFlow
- Defined in:
- lib/microsoft_kiota_authentication_oauth/contexts/oauth_context.rb
Overview
Base class for token request contexs.
Direct Known Subclasses
AuthorizationCodeContext, ClientCredentialContext, OnBehalfOfContext
Instance Attribute Summary collapse
-
#oauth_provider ⇒ Object
readonly
Returns the value of attribute oauth_provider.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
Instance Method Summary collapse
Methods included from OAuthCustomFlow
get_oauth_provider, get_scopes, get_token
Instance Attribute Details
#oauth_provider ⇒ Object
Returns the value of attribute oauth_provider.
10 11 12 |
# File 'lib/microsoft_kiota_authentication_oauth/contexts/oauth_context.rb', line 10 def oauth_provider @oauth_provider end |
#scopes ⇒ Object
Returns the value of attribute scopes.
9 10 11 |
# File 'lib/microsoft_kiota_authentication_oauth/contexts/oauth_context.rb', line 9 def scopes @scopes end |
Instance Method Details
#get_token ⇒ Object
13 14 15 |
# File 'lib/microsoft_kiota_authentication_oauth/contexts/oauth_context.rb', line 13 def get_token OAuthCustomFlow.get_token end |
#initialize_oauth_provider ⇒ Object
21 22 23 |
# File 'lib/microsoft_kiota_authentication_oauth/contexts/oauth_context.rb', line 21 def initialize_oauth_provider @oauth_provider = OAuthCustomFlow.get_oauth_provider end |
#initialize_scopes(scopes = []) ⇒ Object
17 18 19 |
# File 'lib/microsoft_kiota_authentication_oauth/contexts/oauth_context.rb', line 17 def initialize_scopes(scopes = []) @scopes = OAuthCustomFlow.get_scopes end |