Class: Rack::OAuth2::AccessToken::MTLS

Inherits:
Bearer show all
Defined in:
lib/rack/oauth2/access_token/mtls.rb

Instance Attribute Summary

Attributes inherited from Rack::OAuth2::AccessToken

#raw_attributes

Instance Method Summary collapse

Methods inherited from Bearer

#authenticate, #to_mtls

Methods inherited from Rack::OAuth2::AccessToken

#http_client, #token_response

Constructor Details

#initialize(attributes = {}) ⇒ MTLS

Returns a new instance of MTLS.



7
8
9
10
11
12
# File 'lib/rack/oauth2/access_token/mtls.rb', line 7

def initialize(attributes = {})
  super
  self.token_type = :bearer
  http_client.ssl.client_key = private_key
  http_client.ssl.client_cert = certificate
end