mirror of
https://github.com/plankanban/planka.git
synced 2026-02-24 19:08:59 +03:00
OIDC : Configuration for Keycloak #393
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?
Originally created by @pca-homsi on GitHub (Dec 8, 2023).
I have configured planka with keycloak as OIDC provider. but it give and error when calling the
/api/access-tokens/exchange-using-oidc : {"code":"E_UNAUTHORIZED","message":"Invalid code or nonce"}
Is there any specific keycloak config needed to make it work correctly ?
I'm using a docker based installation of planka 1.15.0 and keycloak 23.0.1
with the following configuration
on the container log i get the following :
[W] Error while exchanging OIDC code: RPError: iss missing from the response
[W] Invalid code or nonce! (IP: 172.30.0.2)
Help please !
@webzit commented on GitHub (Dec 8, 2023):
+1
@meltyshev commented on GitHub (Dec 9, 2023):
Hi! Thanks for reporting this. I'll try to test OIDC with Keycloak this weekend.
@pca-homsi commented on GitHub (Dec 9, 2023):
i just made it work by patching the file \server\api\helpers\usersget-or-create-one-using-oidc.js
const tokenSet = await client.callback(
sails.config.custom.oidcRedirectUri,
{
code: inputs.code,
iss: sails.config.custom.oidcIssuer // Added this
},
{ nonce: inputs.nonce },
);
@meltyshev commented on GitHub (Dec 9, 2023):
Thanks for the information about the fix! I'll add this parameter to Planka's code.