Class: Keratin::AuthN::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/keratin/authn.rb

Instance Attribute Summary collapse

Instance Attribute Details

#audienceObject

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_urlObject

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

#issuerObject

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_ttlObject

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

#loggerObject

optional logger for debug messages



46
47
48
# File 'lib/keratin/authn.rb', line 46

def logger
  @logger
end

#passwordObject

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

#usernameObject

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