class Keratin::AuthN::Config

Attributes

audience[RW]

the domain (host) of the main application. no protocol. e.g. “audience.tech”

authn_url[W]

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

issuer[RW]

the base url of the service handling authentication e.g. “issuer.tech

keychain_ttl[RW]

how long (in seconds) to keep keys in the keychain before refreshing. default: 3600

logger[RW]

optional logger for debug messages

password[RW]

the http basic auth password for accessing private endpoints of the authn issuer.

username[RW]

the http basic auth username for accessing private endpoints of the authn issuer.

Public Instance Methods

authn_url() click to toggle source
# File lib/keratin/authn.rb, line 35
def authn_url
  @authn_url || issuer
end