mirror of
https://github.com/plankanban/planka.git
synced 2025-12-06 09:13:16 +03:00
[PR #491] [MERGED] Add Authorization code flow with pkce and exchange the token. #1150
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/plankanban/planka/pull/491
Author: @gorrilla10101
Created: 8/11/2023
Status: ✅ Merged
Merged: 9/4/2023
Merged by: @meltyshev
Base:
master← Head:add-oidc-support📝 Commits (10+)
c9d1a14installed react-oidc5e84e0aadd openid-client package5bff084frontend ui configured.07e8b4einitial login with oidc630dc09logout8f13411loaded config from serverf2536c6switched to react-oidc-contextf08626aButton for login.827e51aCreated IdentityProviderUser5385020- created identity_provider_user table📊 Changes
25 files changed (+806 additions, -24 deletions)
View changed files
📝
client/package-lock.json(+54 -0)📝
client/package.json(+1 -0)📝
client/src/api/access-tokens.js(+3 -0)📝
client/src/components/Header/Header.jsx(+8 -1)📝
client/src/components/Login/Login.jsx(+5 -0)➕
client/src/components/OIDC/OidcLogin.jsx(+19 -0)➕
client/src/components/OIDC/index.js(+3 -0)📝
client/src/components/Root.jsx(+27 -15)📝
client/src/constants/Paths.js(+2 -0)➕
client/src/containers/OidcLoginContainer.js(+26 -0)📝
client/src/index.js(+7 -3)📝
client/src/locales/cs/core.js(+1 -2)📝
client/src/sagas/login/services/login.js(+6 -2)➕
server/api/controllers/access-tokens/exchange.js(+177 -0)➕
server/api/controllers/appconfig/index.js(+11 -0)➕
server/api/models/IdentityProviderUser.js(+40 -0)📝
server/api/models/User.js(+8 -1)📝
server/config/custom.js(+10 -0)📝
server/config/policies.js(+2 -0)📝
server/config/routes.js(+3 -0)...and 5 more files
📄 Description
uses react-oidc-context to login to an OIDC Provider and then exchanges that access token for a planka token.
I addressed, all of the concerns from this PR that I noticed. https://github.com/plankanban/planka/pull/203
There's one big thing and a couple small thing that I know of remaining.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.