Class: WineBouncer::AuthStrategies::Swagger
- Inherits:
-
BaseStrategy
- Object
- BaseStrategy
- WineBouncer::AuthStrategies::Swagger
- Defined in:
- lib/wine_bouncer/auth_strategies/swagger.rb
Instance Attribute Summary
Attributes inherited from BaseStrategy
Instance Method Summary collapse
Instance Method Details
#auth_scopes ⇒ Object
14 15 16 |
# File 'lib/wine_bouncer/auth_strategies/swagger.rb', line 14 def auth_scopes .map { |hash| hash[:scope].to_sym } end |
#endpoint_protected? ⇒ Boolean
6 7 8 |
# File 'lib/wine_bouncer/auth_strategies/swagger.rb', line 6 def endpoint_protected? && !! end |
#has_auth_scopes? ⇒ Boolean
10 11 12 |
# File 'lib/wine_bouncer/auth_strategies/swagger.rb', line 10 def has_auth_scopes? endpoint_protected? && !.empty? end |