Class: CognitoIdpRails::Configuration
- Inherits:
-
Object
- Object
- CognitoIdpRails::Configuration
- Defined in:
- lib/cognito_idp_rails/configuration.rb
Instance Attribute Summary collapse
-
#after_login ⇒ Object
Returns the value of attribute after_login.
-
#after_login_route ⇒ Object
Returns the value of attribute after_login_route.
-
#after_logout_route ⇒ Object
Returns the value of attribute after_logout_route.
-
#before_logout ⇒ Object
Returns the value of attribute before_logout.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#scope ⇒ Object
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 |
# File 'lib/cognito_idp_rails/configuration.rb', line 6 def initialize @after_login_route = "/" @after_logout_route = "/" @after_login = lambda { |token, user_info, request| } @before_logout = lambda { |request| } end |
Instance Attribute Details
#after_login ⇒ Object
Returns the value of attribute after_login.
3 4 5 |
# File 'lib/cognito_idp_rails/configuration.rb', line 3 def after_login @after_login end |
#after_login_route ⇒ Object
Returns the value of attribute after_login_route.
3 4 5 |
# File 'lib/cognito_idp_rails/configuration.rb', line 3 def after_login_route @after_login_route end |
#after_logout_route ⇒ Object
Returns the value of attribute after_logout_route.
3 4 5 |
# File 'lib/cognito_idp_rails/configuration.rb', line 3 def after_logout_route @after_logout_route end |
#before_logout ⇒ Object
Returns the value of attribute before_logout.
3 4 5 |
# File 'lib/cognito_idp_rails/configuration.rb', line 3 def before_logout @before_logout end |
#client_id ⇒ Object
Returns the value of attribute client_id.
3 4 5 |
# File 'lib/cognito_idp_rails/configuration.rb', line 3 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
3 4 5 |
# File 'lib/cognito_idp_rails/configuration.rb', line 3 def client_secret @client_secret end |
#domain ⇒ Object
Returns the value of attribute domain.
3 4 5 |
# File 'lib/cognito_idp_rails/configuration.rb', line 3 def domain @domain end |
#scope ⇒ Object
Returns the value of attribute scope.
3 4 5 |
# File 'lib/cognito_idp_rails/configuration.rb', line 3 def scope @scope end |