Skip to content
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

Add skipUserProfile option for Generic OpenID Connect / OAuth2 Authentication #6190

Merged

Conversation

robinho81
Copy link
Contributor

This pull request adds a new option "skip user profile" to the settings for the Generic OpenID Connect / Oauth2 authentication. The default is false. This exposes the option to skipUserProfile which is configurable in the underlying library that WikiJS uses: passport-openidconnect

The advantage of having this option is so that we can integrate with CIAM (customer identity access management) solutions such as Azure AD B2C which do NOT have the UserInfo endpoint as default.

Furthermore, it seems that WikiJS does not actually use the UserInfo endpoint for anything, as the Display name is taken from the email claim.

The change has been tested with Azure AD B2C and works well. NOTE: A custom policy is still required on this platform in order to return the "email" claim!

@auto-assign auto-assign bot requested a review from NGPixel February 21, 2023 13:39
@NGPixel NGPixel merged commit 8db4be6 into requarks:main Mar 17, 2023
@robinho81 robinho81 deleted the pr/oidc-expose-skip-user-profile-option branch March 21, 2023 08:35
davidflypei pushed a commit to davidflypei/wiki that referenced this pull request Jun 13, 2023
jionggyu pushed a commit to jionggyu/wiki-2.5.302-patch that referenced this pull request Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants