Skip to content

Update OIDC provider to v7 and fix minor issues - #1166

Merged
jvherweg merged 3 commits into
versions/3.0.0from
fix/oidc-provider-v7
Feb 21, 2022
Merged

jvherweg merged 3 commits into
versions/3.0.0from
fix/oidc-provider-v7

Conversation

@jvherweg

@jvherweg jvherweg commented Feb 16, 2022 •

Copy link
Copy Markdown
Member

📁 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:

Example of what the consent screen contains now:
image
ID will be a WebID in case the client uses the WebID auth method.

@jvherweg jvherweg added the semver.major Requires a major version bump label Feb 16, 2022

@RubenVerborgh RubenVerborgh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Account,
ErrorOut,
Adapter } from 'oidc-provider';
Adapter, UnknownObject, ResourceServer } from 'oidc-provider';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require_auth_time: true,
};
// This client will always reject requests since there is no valid redirect
const badClientJson = {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver.major Requires a major version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants