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
the base url for API calls.
-
#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”
24 25 26 |
# File 'lib/keratin/authn.rb', line 24 def audience @audience end |
#authn_url ⇒ Object
the base url for API calls. this is useful if you’ve divided your network so private API requests can not be probed by public devices. it is optional, and will default to issuer. e.g. “authn.internal.dns”
33 34 35 |
# File 'lib/keratin/authn.rb', line 33 def authn_url @authn_url end |
#issuer ⇒ Object
the base url of the service handling authentication e.g. “issuer.tech”
28 29 30 |
# File 'lib/keratin/authn.rb', line 28 def issuer @issuer end |
#keychain_ttl ⇒ Object
how long (in seconds) to keep keys in the keychain before refreshing. default: 3600
37 38 39 |
# File 'lib/keratin/authn.rb', line 37 def keychain_ttl @keychain_ttl end |
#logger ⇒ Object
optional logger for debug messages
46 47 48 |
# File 'lib/keratin/authn.rb', line 46 def logger @logger end |
#password ⇒ Object
the http basic auth password for accessing private endpoints of the authn issuer.
43 44 45 |
# File 'lib/keratin/authn.rb', line 43 def password @password end |
#username ⇒ Object
the http basic auth username for accessing private endpoints of the authn issuer.
40 41 42 |
# File 'lib/keratin/authn.rb', line 40 def username @username end |