OAuth setup with Kanidm 🦀 #3654
Replies: 4 comments 1 reply
-
fwiw, a couple of other useful commands, depending your situation:
|
Beta Was this translation helpful? Give feedback.
-
If you're missing the email claim and get a log message like this:
The user in kanidm is missing the mail attribute. |
Beta Was this translation helpful? Give feedback.
-
I found that for some reason Mealie would never get a JWT token containing the user's groups even if the I was able to work around this by:
|
Beta Was this translation helpful? Give feedback.
-
Mealie have added secrets in V2 >, you'll have to:
and add in mealie env :
|
Beta Was this translation helpful? Give feedback.
-
Configuration Example (last updated for mealie v2.4.1, kanidm 1.4.5)
Kanidm
You need to create a public client:
kanidm system oauth2 create mealie Mealie https://mealie.example.com
kanidm system oauth2 add-redirect-url mealie https://mealie.example.com/login
kanidm system oauth2 prefer-short-username mealie
kanidm group create mealie_users
kanidm group create mealie_admins
kanidm system oauth2 update-scope-map mealie mealie_users openid email profile groups
kanidm system oauth2 update-scope-map mealie mealie_admins openid email profile groups
kanidm system oauth2 show-basic-secret mealie
Mealie
Add this to your env
See https://docs.mealie.io/documentation/getting-started/installation/backend-config/#openid-connect-oidc for more options
Beta Was this translation helpful? Give feedback.
All reactions