Class: Keratin::AuthN::Config
- Inherits:
-
Object
- Object
- Keratin::AuthN::Config
- Defined in:
- lib/keratin/authn.rb
Instance Attribute Summary collapse
-
#audience ⇒ Object
the domain (host) of the main application.
- #authn_url ⇒ Object
-
#issuer ⇒ Object
the base url of the service handling authentication e.g.
-
#keychain_ttl ⇒ Object
how long (in seconds) to keep keys in the keychain before refreshing.
-
#logger ⇒ Object
optional logger for debug messages.
-
#password ⇒ Object
the http basic auth password for accessing private endpoints of the authn issuer.
-
#username ⇒ Object
the http basic auth username for accessing private endpoints of the authn issuer.
Instance Attribute Details
#audience ⇒ Object
the domain (host) of the main application. no protocol. e.g. “audience.tech”
25 26 27 |
# File 'lib/keratin/authn.rb', line 25 def audience @audience end |
#authn_url ⇒ Object
35 36 37 |
# File 'lib/keratin/authn.rb', line 35 def authn_url @authn_url || issuer end |
#issuer ⇒ Object
the base url of the service handling authentication e.g. “issuer.tech”
29 30 31 |
# File 'lib/keratin/authn.rb', line 29 def issuer @issuer end |
#keychain_ttl ⇒ Object
how long (in seconds) to keep keys in the keychain before refreshing. default: 3600
41 42 43 |
# File 'lib/keratin/authn.rb', line 41 def keychain_ttl @keychain_ttl end |
#logger ⇒ Object
optional logger for debug messages
50 51 52 |
# File 'lib/keratin/authn.rb', line 50 def logger @logger end |
#password ⇒ Object
the http basic auth password for accessing private endpoints of the authn issuer.
47 48 49 |
# File 'lib/keratin/authn.rb', line 47 def password @password end |
#username ⇒ Object
the http basic auth username for accessing private endpoints of the authn issuer.
44 45 46 |
# File 'lib/keratin/authn.rb', line 44 def username @username end |