Module: Mcp::Auth
- Defined in:
- lib/mcp/auth.rb,
lib/mcp/auth/engine.rb,
lib/mcp/auth/version.rb,
lib/mcp/auth/scope_registry.rb,
app/models/mcp/auth/access_token.rb,
app/models/mcp/auth/oauth_client.rb,
app/models/mcp/auth/refresh_token.rb,
lib/mcp/auth/services/token_service.rb,
app/models/mcp/auth/authorization_code.rb,
app/controllers/mcp/auth/oauth_controller.rb,
lib/generators/mcp/auth/install_generator.rb,
lib/mcp/auth/services/authorization_service.rb,
app/controllers/mcp/auth/well_known_controller.rb
Defined Under Namespace
Modules: ControllerHelpers, Generators, Services Classes: AccessToken, AuthorizationCode, Configuration, Engine, Error, OauthClient, OauthController, RefreshToken, ScopeRegistry, WellKnownController
Constant Summary collapse
- VERSION =
"0.3.0"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
13 14 15 |
# File 'lib/mcp/auth.rb', line 13 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/mcp/auth.rb', line 16 def self.configure self.configuration ||= Configuration.new yield(configuration) # Also set on Rails.application.config for controllers to access Rails.application.config.mcp_auth = configuration if defined?(Rails) end |