Repository navigation
Forgejo config #4045
Replies: 6 comments 18 replies
|
Awesome stuff! Just in time as I set this up tonight! One thing I noticed is I also set the following via config ini - [oauth2_client]
; This presumably sets defaults for all clients?
OPENID_CONNECT_SCOPES = email profile ssh_publickeys
; This didn't seem to be an option in the GUI, though Kanidm/vanilla OIDC might not support it
UPDATE_AVATAR = true |
|
Thanks! This was extremely helpful. I already had it running but couldn't find the scope for ssh pubkeys anywhere in the docs. |
|
Thanks for the hints. Edit: some more hints, Foregejo also allows to manage organization/team membership through claims: And in Forgejo, set |
|
I followed your instructions and everything works fine - thanks a lot for that! However, it seems there is no way for Forgejo to create new users logging in for the first time. And there is also always the need to link the two systems in "Profile" -> "Security" (which a new user can't reach because Forgejo doesn't create a new account) Are there solutions to these two problems? |
|
I got this working but I noticed that the And that the Is that possible? |
|
Here is how I configured my instance in kanidm.
kanidm -D idm_admin system oauth2 create forgejo "Forgejo Server" https://forgejo.lan.internal/
kanidm -D idm_admin system oauth2 prefer-short-username forgejo
kanidm -D idm_admin system oauth2 show-basic-secret forgejo
kanidm -D idm_admin system oauth2 add-redirect-url forgejo https://forgejo.lan.internal/user/oauth2/kanidm/callback
curl -O https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/forgejo.png
kanidm -D idm_admin system oauth2 set-image forgejo forgejo.png
kanidm -D idm_admin system oauth2 update-scope-map 'forgejo' 'forgejo_users' forgejo_roles email openid profile
kanidm -D idm_admin group create forgejo_users
kanidm group set-description 'forgejo_users' 'Users'
kanidm -D idm_admin group create forgejo_admins
kanidm group set-description 'forgejo_admins' 'Administrators'
kanidm -D idm_admin system oauth2 update-claim-map-join 'forgejo' 'forgejo_roles' array
kanidm -D idm_admin system oauth2 update-claim-map 'forgejo' 'forgejo_roles' 'forgejo_users' 'ForgejoUser'
kanidm -D idm_admin system oauth2 update-claim-map 'forgejo' 'forgejo_roles' 'forgejo_admins' 'ForgejoAdministrator' |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Similar to gittea, but actually supports PKCE. also here is my config for the other claims too, I hope it may be useful to someone.
Forgejo
Site administration -> identity & access -> authentication sources -> add
kanidm
app.iniAlso note as of 13.0 there seems to be a bug where a users does not get admin permissions on registration, but must logout and back in again first.
All reactions