Class: WardenOpenidBearer::DiscoveredConfig
- Inherits:
-
Object
- Object
- WardenOpenidBearer::DiscoveredConfig
- 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
-
#cache_timeout ⇒ Object
Called by the CacheMixin.
-
#peer_cert ⇒ Object
writeonly
Sets the attribute peer_cert.
Instance Method Summary collapse
-
#initialize(metadata_uri) ⇒ DiscoveredConfig
constructor
A new instance of DiscoveredConfig.
- #userinfo_endpoint ⇒ Object
Methods included from CacheMixin
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_timeout ⇒ Object
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
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_endpoint ⇒ Object
23 24 25 |
# File 'lib/warden_openid_bearer/discovered_config.rb', line 23 def userinfo_endpoint [:userinfo_endpoint] end |