nov / openid_connect

OpenID Connect Server & Client Library
MIT License
417 stars 122 forks source link

Migration from openid_connect 1.1.8 to 2.3.0: where is the httpclient of OpenIDConnect::AccessToken? #102

Open fwolff opened 3 months ago

fwolff commented 3 months ago

Hello,

I'm migrating from openid_connect 1.1.8 to 2.3.0 and I used to get an authenticated httpclient this way:

access_token = OpenIDConnect::AccessToken.new(
      access_token: session[:access_token],
      client: client # OpenIDConnect::Client instance
)
access_token.httpclient

The httpclient is gone and I couldn't find any equivalent so far.

Could you tell me how to get or build this http client?

Tanks.