Module: Jets::Router::Route::Authorizer
- Extended by:
- ModuleMethods
- Includes:
- ModuleMethods
- Included in:
- Jets::Router::Route
- Defined in:
- lib/jets/router/route/authorizer.rb
Defined Under Namespace
Modules: ModuleMethods
Instance Method Summary collapse
- #api_key_required ⇒ Object
- #authorization_scopes ⇒ Object
- #authorization_type ⇒ Object
- #authorizer ⇒ Object
-
#authorizer_id(prefix_class: true) ⇒ Object
IE: main#protect => MainProtectAuthorizer.
-
#authorizer_metadata ⇒ Object
Metadata about the authorizer class that can be used later.
Methods included from ModuleMethods
Instance Method Details
#api_key_required ⇒ Object
27 28 29 |
# File 'lib/jets/router/route/authorizer.rb', line 27 def api_key_required @options[:api_key_required] end |
#authorization_scopes ⇒ Object
19 20 21 |
# File 'lib/jets/router/route/authorizer.rb', line 19 def @options[:authorization_scopes] end |
#authorization_type ⇒ Object
23 24 25 |
# File 'lib/jets/router/route/authorizer.rb', line 23 def @options[:authorization_type] || end |
#authorizer ⇒ Object
15 16 17 |
# File 'lib/jets/router/route/authorizer.rb', line 15 def @options[:authorizer] end |
#authorizer_id(prefix_class: true) ⇒ Object
IE: main#protect => MainProtectAuthorizer
4 5 6 7 |
# File 'lib/jets/router/route/authorizer.rb', line 4 def (prefix_class: true) return unless logical_id(, prefix_class: prefix_class) end |
#authorizer_metadata ⇒ Object
Metadata about the authorizer class that can be used later. Stored in the Authorizer template parameters. In app_class.rb ‘def controller_params` it is used to build the input parameters for controller templates.
11 12 13 |
# File 'lib/jets/router/route/authorizer.rb', line 11 def () end |