Class: OauthBwergemn::AuthStrategies::Hub
- Inherits:
-
BaseStrategy
- Object
- BaseStrategy
- OauthBwergemn::AuthStrategies::Hub
- Defined in:
- lib/oauth_bwergemn/auth_strategies/hub.rb
Instance Attribute Summary
Attributes inherited from BaseStrategy
Instance Method Summary collapse
Instance Method Details
#auth_scopes ⇒ Object
16 17 18 |
# File 'lib/oauth_bwergemn/auth_strategies/hub.rb', line 16 def auth_scopes [:scopes].map { |s| s.is_a?(String) || s.is_a?(Symbol) ? s.to_sym : s } end |
#endpoint_protected? ⇒ Boolean
6 7 8 |
# File 'lib/oauth_bwergemn/auth_strategies/hub.rb', line 6 def endpoint_protected? !! end |
#has_auth_scopes? ⇒ Boolean
10 11 12 13 14 |
# File 'lib/oauth_bwergemn/auth_strategies/hub.rb', line 10 def has_auth_scopes? !! && .key?(:scopes) && ![:scopes].empty? end |