okta-spring-boot
okta-spring-boot copied to clipboard
Unable to use http url for okta.oauth2.issuer in integration test scenarios
I'm submitting a
- [ ] bug report
- [x] feature request
Background info
There are various articles on the internet that describe how to do integration testing with Okta. for example
- https://developer.okta.com/blog/2018/05/02/testing-spring-boot-angular-components#mock-oktas-api-with-wiremock
- https://www.baeldung.com/spring-boot-keycloak-integration-testing
They typically depend on some way of mocking the okta endpoints. Mocks will typically run on localhost over http but this check checks if the configured url is a https url
We need a way to disable this check. The validateHttpsUrl method called under the hood already has a parameter for disabling this check, but there is no way to set it