Repository navigation
Update OIDC provider to v7 and fix minor issues - #1166
Merged
Merged
Conversation
RubenVerborgh
approved these changes
Feb 18, 2022
| Account, | ||
| ErrorOut, | ||
| Adapter } from 'oidc-provider'; | ||
| Adapter, UnknownObject, ResourceServer } from 'oidc-provider'; |
| require_auth_time: true, | ||
| }; | ||
| // This client will always reject requests since there is no valid redirect | ||
| const badClientJson = { |
The biggest resulting change is that the consent page always appears after logging in. Some minor fixes to be closer to the spec are included together with some minor structural refactors.
jvherweg
force-pushed
the
fix/oidc-provider-v7
branch
from
February 21, 2022 08:40
82f7efa to
751b09c
Compare
This was referenced Feb 21, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



📁 Related issues
#1134 #1154 #1061 #827
✍️ Description
Updates the OIDC provider dependency to v7 (#1134). The biggest change from doing this is that a consent screen will now also appear after going through the login screen instead of only appearing if the user was already logged in (so the relevant class was renamed again to now
ConsentHandler). We could go back to the previous version but I personally prefer this actually. This will break any system that try to log in automatically with a script. So this might break the conformance test harness, but having looked at the code there it might actually still work (although it would post the login information actually). This will need to be tested.Edit: This (mostly) works, see #1158 (comment)
While I was working on the code I fixed some minor issues relevant there:
client_idfield toazpand moved it to the ID token (relevant for Add authorization server (spec evolvement) #1154).Example of what the consent screen contains now:

ID will be a WebID in case the client uses the WebID auth method.