Class: Webhookdb::Service::Auth::Skip
- Inherits:
-
Object
- Object
- Webhookdb::Service::Auth::Skip
- Defined in:
- lib/webhookdb/service/auth.rb
Overview
Custom auth strategies can check if their child app is a :skip auth, and if so, skip auth. Allows unauthed endpoints under authed endpoints.
Class Method Summary collapse
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, *_args) ⇒ Skip
constructor
A new instance of Skip.
Constructor Details
#initialize(app, *_args) ⇒ Skip
Returns a new instance of Skip.
83 84 85 |
# File 'lib/webhookdb/service/auth.rb', line 83 def initialize(app, *_args) @app = app end |
Class Method Details
.skip?(app) ⇒ Boolean
79 80 81 |
# File 'lib/webhookdb/service/auth.rb', line 79 def self.skip?(app) return app.[:type] == :skip end |
Instance Method Details
#call(env) ⇒ Object
87 88 89 |
# File 'lib/webhookdb/service/auth.rb', line 87 def call(env) return @app.call(env) end |