简体   繁体   中英

How to use nimbus oauth oidc sdk to get token using a proxy

I tried the oauth token request with client credentials as described here: https://connect2id.com/products/nimbus-oauth-openid-connect-sdk/examples/oauth/token-request#client-credentials

It works perfectly fine on my local machine but in the productive environment all calls to the outside world must use a proxy. Is there any way to use the nimbus sdk with a configurable proxy? I havent found any possibility to set a proxy while creating the token request or sending it.

The support chat helped me. Version 8.2 adds proxy support. I still used 8.3 and just had to update the used version of the sdk.

https://www.javadoc.io/doc/com.nimbusds/oauth2-oidc-sdk/latest/com/nimbusds/oauth2/sdk/http/HTTPRequest.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM