wikijs-fork/server/modules/authentication
Dan Nicholson d5d368cd33
feat: fix + enable OIDC auth method (#2282)
* fix: pass userinfo URL in oidc strategy

The userinfo URL from the definition was not being provided to the
passport strategy, which resulted in a type error trying to resolve the
user's profile. Furthermore, the name of the defined URL was
inconsistent with all other authentication method URLs.

* fix: pass all necessary scopes to oidc auth method

When no scopes are provided, passport-openidconnect uses only `openid`,
which does not contain the username or email address. Include `profile`
and `email` to ensure the necessary claims are included.

* fix: update oidc method to call processProfile correctly

Now the profile object and providerKey are passed to processProfile. The
usernameClaim no longer has any use as the email address is the
username.

* fix: mark oidc authentication method as available
2020-08-15 13:32:58 -04:00
..
auth0 feat: auth0 + discord + github + slack auth modules 2019-04-21 21:43:33 -04:00
azure fix: use preferred_username as alternate for Azure AD 2019-10-27 13:57:39 -04:00
cas feat: auth jwt, permissions, login ui (wip) 2018-10-12 16:41:21 -04:00
discord fix: change discord module ‘discordapp.com’ to ‘discord.com’ (#2117) 2020-06-27 17:01:00 -04:00
dropbox feat: google auth module 2019-04-28 00:20:06 -04:00
facebook feat: facebook auth module 2019-04-28 02:11:38 -04:00
firebase feat: auth0 + discord + github + slack auth modules 2019-04-21 21:43:33 -04:00
github fix: Switch converted to Object Literal (#940) 2019-08-04 16:31:13 -04:00
gitlab fix: gitlab baseurl typo (#934) 2019-07-23 21:21:24 -04:00
google feat: google auth module 2019-04-28 00:20:06 -04:00
keycloak fix: use fullname from keycloak profile info with username as fallback (#1888) 2020-05-15 13:28:55 -04:00
ldap fix: login input hints 2020-07-20 00:22:29 -04:00
local fix: login input hints 2020-07-20 00:22:29 -04:00
microsoft feat: ldap module + deps upgrade 2019-04-26 23:59:35 -04:00
oauth2 feat: new login experience (#2139) 2020-07-03 19:36:33 -04:00
oidc feat: fix + enable OIDC auth method (#2282) 2020-08-15 13:32:58 -04:00
okta feat: assets move + comments migration + admin users UI 2020-05-21 00:20:57 -04:00
saml feat: assets move + comments migration + admin users UI 2020-05-21 00:20:57 -04:00
slack feat: google auth module 2019-04-28 00:20:06 -04:00
twitch fix: resolve Twitch OAuth API (#1561) 2020-03-07 17:57:09 -05:00