Class: Rack::OAuth2::Server::Token
- Inherits:
-
Abstract::Handler
- Object
- Abstract::Handler
- Rack::OAuth2::Server::Token
- Defined in:
- lib/rack/oauth2/server/token.rb,
lib/rack/oauth2/server/token/error.rb,
lib/rack/oauth2/server/token/password.rb,
lib/rack/oauth2/server/token/extension.rb,
lib/rack/oauth2/server/token/jwt_bearer.rb,
lib/rack/oauth2/server/token/saml2_bearer.rb,
lib/rack/oauth2/server/token/refresh_token.rb,
lib/rack/oauth2/server/token/extension/example.rb,
lib/rack/oauth2/server/token/authorization_code.rb,
lib/rack/oauth2/server/token/client_credentials.rb
Defined Under Namespace
Modules: ErrorMethods, Extension Classes: AuthorizationCode, BadRequest, ClientCredentials, JWTBearer, Password, RefreshToken, Request, Response, SAML2Bearer, Unauthorized
Instance Attribute Summary
Attributes inherited from Abstract::Handler
#authenticator, #request, #response
Instance Method Summary collapse
Methods inherited from Abstract::Handler
Constructor Details
This class inherits a constructor from Rack::OAuth2::Server::Abstract::Handler
Instance Method Details
#_call(env) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/rack/oauth2/server/token.rb', line 7 def _call(env) request = Request.new(env) grant_type_for(request).new(&@authenticator)._call(env).finish rescue Rack::OAuth2::Server::Abstract::Error => e e.finish end |