Class: Tamashii::Manager::Authorization
- Inherits:
-
Handler
- Object
- Handler
- Tamashii::Manager::Authorization
- Defined in:
- lib/tamashii/manager/authorization.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#resolve(data = nil) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/tamashii/manager/authorization.rb', line 7 def resolve(data = nil) type, client_id = case @type when Tamashii::Type::AUTH_TOKEN Authorizator::Token.new.verify!(data) else raise Error::AuthorizationError, 'Invalid authorization type.' end @env[:client].accept(type, client_id) end |