class OpenIDTokenProxy::Config
Attributes
client_id[RW]
client_secret[RW]
domain_hint[RW]
end_session_endpoint[RW]
issuer[RW]
prompt[RW]
public_keys[RW]
redirect_uri[RW]
resource[RW]
token_acquirement_hook[RW]
token_endpoint[RW]
token_refreshment_hook[RW]
userinfo_endpoint[RW]
Public Class Methods
new() { |self| ... }
click to toggle source
# File lib/openid_token_proxy/config.rb, line 17 def initialize @client_id = ENV['OPENID_CLIENT_ID'] @client_secret = ENV['OPENID_CLIENT_SECRET'] @issuer = ENV['OPENID_ISSUER'] @domain_hint = ENV['OPENID_DOMAIN_HINT'] @prompt = ENV['OPENID_PROMPT'] @redirect_uri = ENV['OPENID_REDIRECT_URI'] @resource = ENV['OPENID_RESOURCE'] @authorization_uri = ENV['OPENID_AUTHORIZATION_URI'] @authorization_endpoint = ENV['OPENID_AUTHORIZATION_ENDPOINT'] @token_endpoint = ENV['OPENID_TOKEN_ENDPOINT'] @userinfo_endpoint = ENV['OPENID_USERINFO_ENDPOINT'] @end_session_endpoint = ENV['OPENID_END_SESSION_ENDPOINT'] @token_acquirement_hook = proc { } @token_refreshment_hook = proc { } yield self if block_given? end
Public Instance Methods
provider_config()
click to toggle source
# File lib/openid_token_proxy/config.rb, line 40 def provider_config # TODO: Add support for refreshing provider configuration @provider_config ||= begin OpenIDConnect::Discovery::Provider::Config.discover! issuer end end