Method: Rack::PrxAuth::TokenData#authorized?
- Defined in:
- lib/rack/prx_auth/token_data.rb
#authorized?(resource, scope = nil) ⇒ Boolean
26 27 28 29 30 31 32 33 34 |
# File 'lib/rack/prx_auth/token_data.rb', line 26 def (resource, scope=nil) if resource == WILDCARD_RESOURCE_NAME (scope) elsif scope.nil? (resource, scope) else (resource, scope) || (scope) end end |