Skip to content

OktaOAuth2PropertiesMappingEnvironmentPostProcessor does not respect okta proxy settings #693

@ndk-

Description

@ndk-

ℹ️ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions