Sha256: d38372d453940307b41e1a6900b10c4224235c891e4f93a450f235778661ab9f
Contents?: true
Size: 570 Bytes
Versions: 4
Compression:
Stored size: 570 Bytes
Contents
module WineBouncer module AuthStrategies class Default < ::WineBouncer::BaseStrategy def endpoint_protected? !!endpoint_authorizations end def has_auth_scopes? !!endpoint_authorizations && endpoint_authorizations.has_key?(:scopes) && !endpoint_authorizations[:scopes].empty? end def auth_scopes endpoint_authorizations[:scopes].map(&:to_sym) end private def endpoint_authorizations api_context.options[:route_options][:auth] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems