Class: Kreuzcrawl::AuthConfigBearer
- Inherits:
-
Data
- Object
- Data
- Kreuzcrawl::AuthConfigBearer
- Extended by:
- T::Sig
- Includes:
- AuthConfig
- Defined in:
- lib/kreuzcrawl/native.rb
Overview
Bearer token authentication.
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#token ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
64 65 66 |
# File 'lib/kreuzcrawl/native.rb', line 64 def token @token end |
Class Method Details
.from_hash(hash) ⇒ Object
84 85 86 |
# File 'lib/kreuzcrawl/native.rb', line 84 def self.from_hash(hash) new(token: hash[:token] || hash["token"]) end |
Instance Method Details
#basic? ⇒ Boolean
73 |
# File 'lib/kreuzcrawl/native.rb', line 73 def basic? = false |
#bearer? ⇒ Boolean
76 |
# File 'lib/kreuzcrawl/native.rb', line 76 def bearer? = true |
#header? ⇒ Boolean
79 |
# File 'lib/kreuzcrawl/native.rb', line 79 def header? = false |