On your wikiJs server instance in the folder within the {root-to-wikijs}/server/modules/authentication you need to create another directory, e.g. called “mailcow”.
Within that directory I created two files:
- authentication.js
- definition.yml
Please see attached both files. (please rename the file ending, as this website renamed them to .txt instead of keeping their original file endings)
(I think I’ve used the configuration of the oauth2 and rocketchat as a basis for creating the mailcow authentication)
Make sure file permissions are set correctly.
Then log into WikiJS with your admin and choose mailcow as your oauth2 provider.
Hope that helps.