Skip to content
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

OktaOAuth2PropertiesMappingEnvironmentPostProcessor does not respect okta proxy settings #693

Open
1 of 2 tasks
ndk- opened this issue Jun 12, 2024 · 0 comments
Open
1 of 2 tasks

Comments

@ndk-
Copy link

ndk- commented Jun 12, 2024

ℹ️ If you have a question, please post it on the Okta Developer Forum instead. Issues in this repository are reserved for bug reports and feature requests only.

I'm submitting a

  • bug report
  • feature request

Background info

OktaOAuth2PropertiesMappingEnvironmentPostProcessor does not respect okta proxy settings

Take a look at https://github.com/okta/okta-spring-boot/blob/master/oauth2/src/main/java/com/okta/spring/boot/oauth/env/OktaOAuth2PropertiesMappingEnvironmentPostProcessor.java. It instantiates RestTemplate without any regard to okta proxy settings and immediately tries to fetch well known configuration.

Expected behavior

OktaOAuth2PropertiesMappingEnvironmentPostProcessor uses okta proxy settings to fetch .well-known configuration

What should have happened?

What went wrong?

OktaOAuth2PropertiesMappingEnvironmentPostProcessor uses RestTemplate with no respect to okta proxy settings.

Please provide log or error messages if applicable.
No need to

Steps to reproduce

  1. Limit all connections from machine
  2. Use okta proxy settings to connect to okta
  3. Observe that fetching .well-known configuration is failing due to step 1

If the current behavior is a bug, please provide the steps to reproduce and a minimal demo if possible.

SDK Version

Latest stable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant