Skip to content

Commit 7c4ab57

Browse files
committed
httpclient -> http_client
1 parent 6796b39 commit 7c4ab57

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/rack/oauth2/access_token.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class AccessToken
55
attr_required :access_token, :token_type
66
attr_optional :refresh_token, :expires_in, :scope
77
attr_accessor :raw_attributes
8-
delegate :get, :patch, :post, :put, :delete, to: :httpclient
8+
delegate :get, :patch, :post, :put, :delete, to: :http_client
99

1010
alias_method :to_s, :access_token
1111

@@ -18,8 +18,8 @@ def initialize(attributes = {})
1818
attr_missing!
1919
end
2020

21-
def httpclient
22-
@httpclient ||= Rack::OAuth2.http_client("#{self.class} (#{VERSION})") do |faraday|
21+
def http_client
22+
@http_client ||= Rack::OAuth2.http_client("#{self.class} (#{VERSION})") do |faraday|
2323
Authenticator.new(self).authenticate(faraday)
2424
end
2525
end

lib/rack/oauth2/access_token/mtls.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ class MTLS < Bearer
77
def initialize(attributes = {})
88
super
99
self.token_type = :bearer
10-
httpclient.ssl.client_key = private_key
11-
httpclient.ssl.client_cert = certificate
10+
http_client.ssl.client_key = private_key
11+
http_client.ssl.client_cert = certificate
1212
end
1313
end
1414
end

0 commit comments

Comments
 (0)