Class: MicrosoftKiotaAuthenticationOAuth::OAuthContext

Inherits:
Object
  • Object
show all
Includes:
OAuthCustomFlow
Defined in:
lib/microsoft_kiota_authentication_oauth/contexts/oauth_context.rb

Overview

Base class for token request contexs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from OAuthCustomFlow

get_oauth_provider, get_scopes, get_token

Instance Attribute Details

#oauth_providerObject

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

#scopesObject

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_tokenObject



13
14
15
# File 'lib/microsoft_kiota_authentication_oauth/contexts/oauth_context.rb', line 13

def get_token
  OAuthCustomFlow.get_token
end

#initialize_oauth_providerObject



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