Class: OpenIDConnect::AccessToken::MTLS

Inherits:
OpenIDConnect::AccessToken show all
Defined in:
lib/openid_connect/access_token/mtls.rb

Instance Method Summary collapse

Methods inherited from OpenIDConnect::AccessToken

#to_mtls, #userinfo!

Constructor Details

#initialize(attributes = {}) ⇒ MTLS

Returns a new instance of MTLS.



3
4
5
6
7
# File 'lib/openid_connect/access_token/mtls.rb', line 3

def initialize(attributes = {})
  super
  http_client.ssl.client_key  = attributes[:private_key] || client.private_key
  http_client.ssl.client_cert = attributes[:certificate] || client.certificate
end