Skip to content

Use proxy to get access token #6472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rexave opened this issue Jan 23, 2019 · 1 comment
Closed

Use proxy to get access token #6472

rexave opened this issue Jan 23, 2019 · 1 comment
Assignees
Labels
status: duplicate A duplicate of another issue

Comments

@rexave
Copy link

rexave commented Jan 23, 2019

Summary

While using the sample provided by @spencergibb at https://github.com/spring-cloud-samples/sample-gateway-oauth2login , i couldn't configure the gateway to use http proxy.

Actual Behavior

The webclient used for that isn't configurable.
org.springframework.security.oauth2.client.endpoint.WebClientReactiveAuthorizationCodeTokenResponseClient#webClient

Expected Behavior

Can you make this configurable or inject a webclient bean to let use configure it ?

Configuration

spring: 
  cloud:
    gateway:
      httpclient:
        proxy:
          host: myProxy.com
          port: 1234
      enabled: true

Version

Version used : 2.1.2.RELEASE

Sample

https://github.com/spring-cloud-samples/sample-gateway-oauth2login

(redirected from spring-attic/spring-security-oauth2-boot#81)

@jgrandja jgrandja self-assigned this Jan 23, 2019
@jgrandja
Copy link
Contributor

Thanks for the report @rexave.

WebClientReactiveAuthorizationCodeTokenResponseClient.setWebClient() has been implemented via #6182.

However, in order to make it easier for the user to provide a WebClientReactiveAuthorizationCodeTokenResponseClient with a configured WebClient, we need to resolve #6477.

I'm going to close this issue so please track the progress for #6477. Would you be interested in submitting a PR for #6477?

@jgrandja jgrandja added the status: duplicate A duplicate of another issue label Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants