class WineBouncer::AuthStrategies::Default
Public Instance Methods
auth_scopes()
click to toggle source
# File lib/wine_bouncer/auth_strategies/default.rb, line 16 def auth_scopes endpoint_authorizations[:scopes].map(&:to_sym) end
endpoint_protected?()
click to toggle source
# File lib/wine_bouncer/auth_strategies/default.rb, line 6 def endpoint_protected? !!endpoint_authorizations end
has_auth_scopes?()
click to toggle source
# File lib/wine_bouncer/auth_strategies/default.rb, line 10 def has_auth_scopes? !!endpoint_authorizations && endpoint_authorizations.key?(:scopes) && !endpoint_authorizations[:scopes].empty? end