Class: WardenOpenidBearer::DiscoveredConfig

Inherits:
Object
  • Object
show all
Includes:
CacheMixin
Defined in:
lib/warden_openid_bearer/discovered_config.rb

Overview

Cacheable configuration (periodically re-)fetched starting from the OpenID authentication server’s “well-known” endpoint

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from CacheMixin

#cached_by

Constructor Details

#initialize(metadata_uri) ⇒ DiscoveredConfig

Returns a new instance of DiscoveredConfig.



12
13
14
# File 'lib/warden_openid_bearer/discovered_config.rb', line 12

def initialize()
  @metadata_uri = 
end

Instance Attribute Details

#cache_timeoutObject

Called by the CacheMixin.



17
18
19
# File 'lib/warden_openid_bearer/discovered_config.rb', line 17

def cache_timeout
  @cache_timeout ||= 900
end

#peer_cert=(value) ⇒ Object (writeonly)

Sets the attribute peer_cert

Parameters:

  • value

    the value to set the attribute peer_cert to.



27
28
29
# File 'lib/warden_openid_bearer/discovered_config.rb', line 27

def peer_cert=(value)
  @peer_cert = value
end

Instance Method Details

#userinfo_endpointObject



23
24
25
# File 'lib/warden_openid_bearer/discovered_config.rb', line 23

def userinfo_endpoint
  [:userinfo_endpoint]
end