Class: Steppe::Auth::Bearer::HashTokenStore::AccessToken
- Inherits:
-
Object
- Object
- Steppe::Auth::Bearer::HashTokenStore::AccessToken
- Defined in:
- lib/steppe/auth/bearer.rb
Overview
Represents an access token with associated permission scopes.
Instance Method Summary collapse
-
#allows?(required_scopes) ⇒ Boolean
Check if this token has any of the required scopes.
Instance Method Details
#allows?(required_scopes) ⇒ Boolean
Check if this token has any of the required scopes.
50 51 52 |
# File 'lib/steppe/auth/bearer.rb', line 50 def allows?(required_scopes) (scopes & required_scopes).any? end |