mirror of
https://github.com/plankanban/planka.git
synced 2026-02-24 19:08:59 +03:00
[PR #203] [CLOSED] RFC: OIDC #953
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/203
Author: @lorenz
Created: 2/5/2022
Status: ❌ Closed
Base:
master← Head:oidc📝 Commits (1)
71e7349OIDC token exchange📊 Changes
7 files changed (+154 additions, -9040 deletions)
View changed files
➕
server/api/controllers/access-tokens/exchange.js(+64 -0)➕
server/api/hooks/oidc/index.js(+35 -0)📝
server/config/custom.js(+6 -0)📝
server/config/policies.js(+1 -0)📝
server/config/routes.js(+1 -0)📝
server/package-lock.json(+46 -9040)📝
server/package.json(+1 -0)📄 Description
This is a start at implementing a OIDC RP for Planka. It implements just the server side by exposing a token exchange endpoint where a client can exchange an OAuth2/OIDC code for a Planka access token. It auto-manages user attributes based on user info received from an OIDC-compliant IDP.
I have a client implementation working for me but it's extremely hacky so not included here.
There are a bunch of open questions left, that's why I'm posting this as a RFC:
oidcIssuerandoidcClientIdis all it needs, but we could just pass it a full authorization URL.POST /access-tokencall or keep the separatePOST /access-token/exchange?🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.