Class: KindeSdk::Configuration
- Inherits:
-
Object
- Object
- KindeSdk::Configuration
- Defined in:
- lib/kinde_sdk/configuration.rb
Instance Attribute Summary collapse
-
#authorize_url ⇒ Object
Returns the value of attribute authorize_url.
-
#auto_refresh_tokens ⇒ Object
Returns the value of attribute auto_refresh_tokens.
-
#callback_url ⇒ Object
Returns the value of attribute callback_url.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#debugging ⇒ Object
Returns the value of attribute debugging.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#logout_url ⇒ Object
Returns the value of attribute logout_url.
-
#oauth_client ⇒ Object
Returns the value of attribute oauth_client.
-
#pkce_enabled ⇒ Object
Returns the value of attribute pkce_enabled.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#token_url ⇒ Object
Returns the value of attribute token_url.
Class Method Summary collapse
Instance Method Summary collapse
- #configure {|_self| ... } ⇒ Object
-
#initialize {|_self| ... } ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize {|_self| ... } ⇒ Configuration
Returns a new instance of Configuration.
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/kinde_sdk/configuration.rb', line 19 def initialize @authorize_url = '/oauth2/auth' @token_url = '/oauth2/token' @debugging = false @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT) @scope = 'openid offline email profile' @pkce_enabled = true @auto_refresh_tokens = true yield(self) if block_given? end |
Instance Attribute Details
#authorize_url ⇒ Object
Returns the value of attribute authorize_url.
10 11 12 |
# File 'lib/kinde_sdk/configuration.rb', line 10 def @authorize_url end |
#auto_refresh_tokens ⇒ Object
Returns the value of attribute auto_refresh_tokens.
17 18 19 |
# File 'lib/kinde_sdk/configuration.rb', line 17 def auto_refresh_tokens @auto_refresh_tokens end |
#callback_url ⇒ Object
Returns the value of attribute callback_url.
6 7 8 |
# File 'lib/kinde_sdk/configuration.rb', line 6 def callback_url @callback_url end |
#client_id ⇒ Object
Returns the value of attribute client_id.
4 5 6 |
# File 'lib/kinde_sdk/configuration.rb', line 4 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
5 6 7 |
# File 'lib/kinde_sdk/configuration.rb', line 5 def client_secret @client_secret end |
#debugging ⇒ Object
Returns the value of attribute debugging.
14 15 16 |
# File 'lib/kinde_sdk/configuration.rb', line 14 def debugging @debugging end |
#domain ⇒ Object
Returns the value of attribute domain.
3 4 5 |
# File 'lib/kinde_sdk/configuration.rb', line 3 def domain @domain end |
#logger ⇒ Object
Returns the value of attribute logger.
13 14 15 |
# File 'lib/kinde_sdk/configuration.rb', line 13 def logger @logger end |
#logout_url ⇒ Object
Returns the value of attribute logout_url.
7 8 9 |
# File 'lib/kinde_sdk/configuration.rb', line 7 def logout_url @logout_url end |
#oauth_client ⇒ Object
Returns the value of attribute oauth_client.
15 16 17 |
# File 'lib/kinde_sdk/configuration.rb', line 15 def oauth_client @oauth_client end |
#pkce_enabled ⇒ Object
Returns the value of attribute pkce_enabled.
16 17 18 |
# File 'lib/kinde_sdk/configuration.rb', line 16 def pkce_enabled @pkce_enabled end |
#scope ⇒ Object
Returns the value of attribute scope.
8 9 10 |
# File 'lib/kinde_sdk/configuration.rb', line 8 def scope @scope end |
#token_url ⇒ Object
Returns the value of attribute token_url.
11 12 13 |
# File 'lib/kinde_sdk/configuration.rb', line 11 def token_url @token_url end |
Class Method Details
.default ⇒ Object
31 32 33 |
# File 'lib/kinde_sdk/configuration.rb', line 31 def self.default @@default ||= Configuration.new end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
35 36 37 |
# File 'lib/kinde_sdk/configuration.rb', line 35 def configure yield(self) if block_given? end |