Table of contents
Use Kanidm with Sojuauth
Sojuauth has been tested with Kanidm as authentication provider.
Prerequisites
To interact with the Kanidm administration interface, you need to have the client tools installed.
To proceed with the OAuth2 configuration creation, you need to know the domain at which Sojuauth will be reachable at.
Configuration
-
To set it up, first create a new OAuth2 client configuration:
kanidm system oauth2 create "soju_client" "Soju" "https://sojuauth.example.org" -
Tell it to prefer short usernames:
kanidm system oauth2 prefer-short-username "soju_client" -
Then, create a group containing all users allowed to have a Soju account:
kanidm group create "soju_accounts" "idm_group_admins" -
Add whoever you want to be able to access Soju to the group that was just created:
Tip
If you want all accounts on Kanidm to be able to access Soju by default, add
idm_all_accountsas a member of the group!kanidm group add-members "soju_accounts" "steffo" -
Create a scope mapping that gives access to the
openidandsojuscopes for the created configuration to the members of the group:kanidm system oauth2 update-scope-map "soju_client" "soju_accounts" "openid" "soju" -
And finally, add Sojuauth's callback URL to the created configuration:
kanidm system oauth2 add-redirect-url "soju_client" "https://sojuauth.example.org/callback"