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

Bypass OktaEnvironmentPostProcessorApplicationListener for specific profile #742

Open
jeffemandel opened this issue Nov 9, 2024 · 0 comments

Comments

@jeffemandel
Copy link

I'm submitting a

  • [ x] feature request

Describe your request here (if necessary).

I have a Spring Boot 3.3 application that has two profiles - demo and production. Production is secured by Okta, demo is not. All of the classes that access okta-spring-boot are excluded in the demo profile. None-the-less, when I start the application in this profile, OktaEnvironmentPostProcessorApplicationListener tries to validate my application-demo.yml and complains that there is no Okta Issuer URL. If the check
ConfigurationValidator.validateIssuer(environment.getProperty("okta.oauth2.issuer")
was in the auto configure, it would be easy to disable in the application.yml:

spring:
    autoconfigure:
      exclude:
      - com.okta.spring.boot.oauth.OktaOAuth2AutoConfig

I know this is a minor annoyance that doesn't impact the security or leak sensitive information, but I hate seeing "Warning" in my logs.

SDK Version

3.0.7

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