okta / okta-jwt-verifier-python

okta-jwt-verifier-python
https://github.com/okta/okta-jwt-verifier-python
Apache License 2.0
32 stars 15 forks source link

Disable https_check for local environments #46

Open jiturriagaAB opened 1 year ago

jiturriagaAB commented 1 year ago

I'm currently working with a local okta server on my machine which obviously doesn't use https, however there's no way to disable the https_check from within my code. https://github.com/okta/okta-jwt-verifier-python/blob/a43bd2f04559663a0ba1fdfc6ac3a883974cc14e/okta_jwt_verifier/config_validator.py#L24 It seems like a fairly straight forward fix to allow the user to change https_check for the config validator.

forzagreen commented 9 months ago

For information, the https check can be disabled in https://github.com/okta/okta-sdk-python with the environment variable OKTA_TESTING_TESTINGDISABLEHTTPSCHECK

It would be great if this option is added here.

Ref: https://github.com/okta/okta-sdk-python#environment-variables