okta-spring-boot icon indicating copy to clipboard operation
okta-spring-boot copied to clipboard

Unable to use http url for okta.oauth2.issuer in integration test scenarios

Open jelmerk opened this issue 5 months ago • 0 comments

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

jelmerk avatar Sep 27 '24 12:09 jelmerk