Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
HP-1361 Feat/keycloak external OIDC #77
HP-1361 Feat/keycloak external OIDC #77
Changes from 36 commits
30b8bb3
44038b7
9ea986b
b2c3811
b664f46
f781b33
4e30fd5
8a0903d
8f68e0f
accc308
bc3699b
83d4ed4
55c8b15
61a2c06
eed8251
8aa2f89
9f7c60c
7f3315d
f42074f
c4fe619
bf3bc7a
2d47904
4016e94
4c22cd3
f332c15
e487c06
cafb326
11fef27
d7e77e4
531ffb8
162751d
991d181
606c255
585ab75
53a6fd7
f473e11
ce109ac
a78b851
090643e
96704c6
eb5876a
4a078e4
28d165c
d0e1a61
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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'm not sure this is truly "Generic OIDC" b/c it's possible other providers have different fields for the username (for example).
I still think we need a little more abstraction here. A function call at minimum. It's unclear how to expand what's here if a new external OIDC format is introduced.
We need something like:
Or a more OOO pattern. But this is maybe over engineering
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.
But with the changes the other providers can specify their field for the username in the config.
I can change it to the first solution, but then every new idp that comes in needs a new function. I feel like OIDC is specific enough that we don't need to have an if statement for every idp or a new function for each idc.