Class: Aikido::Zen::Request::Schema::AuthDiscovery
- Inherits:
-
Object
- Object
- Aikido::Zen::Request::Schema::AuthDiscovery
- Defined in:
- lib/aikido/zen/request/schema/auth_discovery.rb
Instance Method Summary collapse
-
#initialize(context) ⇒ AuthDiscovery
constructor
A new instance of AuthDiscovery.
- #schemas ⇒ Object
Constructor Details
#initialize(context) ⇒ AuthDiscovery
Returns a new instance of AuthDiscovery.
8 9 10 |
# File 'lib/aikido/zen/request/schema/auth_discovery.rb', line 8 def initialize(context) @context = context end |
Instance Method Details
#schemas ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/aikido/zen/request/schema/auth_discovery.rb', line 12 def schemas schemas = [] schemas << if headers["Authorization"] schemas.concat(extract_from_headers) schemas.concat() AuthSchemas.new(schemas) end |