Class: Capsium::Package::OAuth2Config
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Capsium::Package::OAuth2Config
- Defined in:
- lib/capsium/package/authentication_config.rb,
sig/capsium/package/authentication_config.rbs
Overview
The "oauth2" object of authentication.json: an OAuth2 authorization-code flow. The client secret is NEVER read from the package — it comes from deploy.json or reactor configuration.
Instance Attribute Summary collapse
-
#authorization_url ⇒ String?
Returns the value of attribute authorization_url.
-
#client_id ⇒ String?
Returns the value of attribute client_id.
-
#enabled ⇒ Boolean
Returns the value of attribute enabled.
-
#provider ⇒ String?
Returns the value of attribute provider.
-
#redirect_path ⇒ String
Returns the value of attribute redirect_path.
-
#scopes ⇒ Array[String]
Returns the value of attribute scopes.
-
#token_url ⇒ String?
Returns the value of attribute token_url.
-
#userinfo_url ⇒ String?
Returns the value of attribute userinfo_url.
Instance Method Summary collapse
- #enabled? ⇒ Boolean
- #initialize ⇒ Object constructor
- #to_hash ⇒ Hash[String, untyped]
- #to_json ⇒ String
Constructor Details
#initialize ⇒ Object
33 |
# File 'sig/capsium/package/authentication_config.rbs', line 33
def initialize: (?enabled: bool enabled, ?provider: String? provider,
|
Instance Attribute Details
#authorization_url ⇒ String?
Returns the value of attribute authorization_url.
27 28 29 |
# File 'sig/capsium/package/authentication_config.rbs', line 27 def @authorization_url end |
#client_id ⇒ String?
Returns the value of attribute client_id.
26 27 28 |
# File 'sig/capsium/package/authentication_config.rbs', line 26 def client_id @client_id end |
#enabled ⇒ Boolean
Returns the value of attribute enabled.
24 25 26 |
# File 'sig/capsium/package/authentication_config.rbs', line 24 def enabled @enabled end |
#provider ⇒ String?
Returns the value of attribute provider.
25 26 27 |
# File 'sig/capsium/package/authentication_config.rbs', line 25 def provider @provider end |
#redirect_path ⇒ String
Returns the value of attribute redirect_path.
30 31 32 |
# File 'sig/capsium/package/authentication_config.rbs', line 30 def redirect_path @redirect_path end |
#scopes ⇒ Array[String]
Returns the value of attribute scopes.
31 32 33 |
# File 'sig/capsium/package/authentication_config.rbs', line 31 def scopes @scopes end |
#token_url ⇒ String?
Returns the value of attribute token_url.
28 29 30 |
# File 'sig/capsium/package/authentication_config.rbs', line 28 def token_url @token_url end |
#userinfo_url ⇒ String?
Returns the value of attribute userinfo_url.
29 30 31 |
# File 'sig/capsium/package/authentication_config.rbs', line 29 def userinfo_url @userinfo_url end |
Instance Method Details
#enabled? ⇒ Boolean
53 54 55 |
# File 'lib/capsium/package/authentication_config.rb', line 53 def enabled? !!enabled end |
#to_hash ⇒ Hash[String, untyped]
44 |
# File 'sig/capsium/package/authentication_config.rbs', line 44
def to_hash: () -> Hash[String, untyped]
|
#to_json ⇒ String
43 |
# File 'sig/capsium/package/authentication_config.rbs', line 43
def to_json: (*untyped args) -> String
|