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”



25
26
27
# File 'lib/keratin/authn.rb', line 25

def audience
  @audience
end

#authn_urlObject



35
36
37
# File 'lib/keratin/authn.rb', line 35

def authn_url
  @authn_url || issuer
end

#issuerObject

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_ttlObject

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

#loggerObject

optional logger for debug messages



50
51
52
# File 'lib/keratin/authn.rb', line 50

def logger
  @logger
end

#passwordObject

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

#usernameObject

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