@circlesystems/circleauth-wikijs
v1.1.1
Published
Circle Auth authentication provider for Wiki.js
Downloads
6
Maintainers
Readme
Circle Auth for Wikijs
Circle Auth authentication provider for Wiki.js
Installation
Run the following command entering the correct $WIKIJS_PATH
and $VERSION
(choose a version number from tags)
cd $WIKIJS_PATH
wget https://github.com/circlesystems/circleauth-wikijs/archive/refs/tags/$VERSION.tar.gz
tar xzf $VERSION.tar.gz -C .
cp -r unicauth-wikijs-$VERSION/server .
cp -r unicauth-wikijs-$VERSION/assets .
rm -r unicauth-wikijs-$VERSION
rm $VERSION.tar.gz
cd ./server/modules/authentication/circleauth
npm install
Configuration
- Create an application at Circle Auth Console (you can insert any URL at Login Return URL for now).
- Within Wiki.js Authentication module add a new strategy and choose Unic Auth from the list.
- Inside the 'STRATEGY CONFIGURATION' group fill out App Key, Read Key and Write Key fields available in the Circle Auth Console Application Info.
- Enable the Self-registration option (unless you plan on authorizing users manually).
- Select the group new users should be assigned to when they login for the first time.
- Make sure the checkbox next to Circle Auth in the list of strategies is checked. The text should now say that the strategy is active.
- Click Apply on the upper right of the page to save and apply the configuration.
- In the 'Configuration Reference' group, copy the value from the field Callback URL / Redirect URI.
- Now go back to edit your application at Circle Auth Console and paste the value copied from step 8 to Login Return URL. Save the application.