-
Notifications
You must be signed in to change notification settings - Fork 171
THREESCALE-11441 only validate oidc setting if authentication method is set to oidc #1568
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
842cd5f to
2bd8459
Compare
2bd8459 to
121e6ef
Compare
@josemigallas
josemigallas
left a comment
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.
LGTM with some minor suggestions
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.
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.
I think this comment could go away by simply extracting a guard from the code below:
The if authentication part seems redundant anyway (nil is already unequal to 'oidc').
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.
The authentication can take the following values:
1: user_key2: app_id/app_keyoidc: OIDCnil: But if theoidc_issuer_endpointis provided, then in this case we don't want to query OIDC endpoint
Therefore, an if statement is needed.
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.
proxy already declared on the top
Uh oh!
There was an error while loading. Please reload this page.
What
Fix https://issues.redhat.com/browse/THREESCALE-11441
Verification steps
apicast-config.jsonas followand docker-compose
the gateway should output the following
Check the log again and you should not see the same error