-
-
Notifications
You must be signed in to change notification settings - Fork 53
Add a regex option for issuer validation #435
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR ❤️
I left a few specific comments.
We should also update the code here so that it uses the regex to validate the issuer of the configuration:
oidcc/src/oidcc_provider_configuration.erl
Lines 232 to 237 in 03d67d2
case ConfigIssuer of | |
Issuer -> | |
{ok, {Configuration, Expiry}}; | |
_DifferentIssuer when AllowIssuerMismatch -> {ok, {Configuration, Expiry}}; | |
DifferentIssuer when not AllowIssuerMismatch -> | |
{error, {issuer_mismatch, DifferentIssuer}} |
@MrYawe Thanks for the change ❤️ It looks fine, but there's some issue around formatting. Please have a look at the CI output. |
@MrYawe There seems to be an issue with the docs before OTP 27. Specifically the |
( |
@MrYawe Sorry, I meant to just remove the |
One last thing and we're ready to go:
|
@maennchen Thanks for the advice and the review! |
Pull Request Test Coverage Report for Build 274Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Fixes #401