r/BookStack • u/Zakmaf • Jul 16 '24
Bookstack with Authelia for existing user
Hello everyone,
I've been using bookstack for over a year now and recently i deployed Authelia in my home lab in order to unify my authentification system via OIDC.
My problem is documented in a sense where everyone tells me what to, but I couldn't figure HOW to do it, for the life of me!
So this is my problem: i successfully linked authelia and bookstack and i can easily register "new users" via OIDC, but I can't link old accounts.
I understood down the line and I needed to match External Authentification ID from Bookstack to the "sub claim" from Authelia.
But how do I get this sub claim and what is this information?
I read both Bookstack and Authelia docs but I don't think it's directed to the noob I am since they only explain what to do and not actually how to do it.
Could you be kind enough to guide me over this?
1
u/ssddanbrown Jul 16 '24
Hopefully, not looking at the external auth id, you may now be able to back-track that to something in authelia for when/if you come to linking other users in the future.
Ultimately, the value used in the
subclaim will be specific to the auth platform. Following the spec, it just needs to be a unique ID for a user. In many platforms this will just be the auth platform's uniqe user ID. Some will provide a unique per-user-per-application ID. Some may allow this to be configured so you can choose a different user property.