Laktos
Laktos
BABetter Auth
Created by Laktos on 12/28/2024 in #help
OIDC Setup
Hi! I've been trying a lot to create an OIDC provider. Just a mock one to start with. But I have a question, to me it seems like the "loginPage" on the OIDC config needs to be on the server side, and be served like a static HTML file or something like that, because I couldn't just redirect the user to another page in the FE it seems like. And does anyone have a nice little example of doing that? I tried doing some express.static('public'), putting a login HTML there but it wasn't found, strangely. Also highly probable I'm doing something wacky there. And another question, is the idea that you're only able to create one provider? Or rather, use one identification method. I'd need two different for my use-case, but that seems quite tricky to get working. Thanks, Albin
1 replies
BABetter Auth
Created by Laktos on 12/26/2024 in #help
Can't list organizations on Vue client
No description
2 replies
BABetter Auth
Created by Laktos on 12/26/2024 in #help
Multiple roles for users in organizations
Hey! I recently found Better Auth and it's wonderful, have been setting up now to use JWTs so that I can pass it to my different backends. Didn't quite figure out how to verify the signed cookie without doing a database-call so I opted for what I have been using with Auth0. Perhaps if someone knows about that please let me know. But to the question, my use-case includes organizations, so I'm using the plugin for that. However, I notice that the "role" field is in singular, and to me it doesn't seem possible to do anything other than just map the field to another name. I could do something like attach roles to the user, but that stops me from becoming as granular as I'd like, since in some cases one user would need to have different roles for different organizations. And also I'd like to include the permissions in my JWT, seems like a common practice as well so maybe someone here has done it? So, in essence, does anyone know how to have multiple roles per org-member? If it's possible? Thanks, Albin
10 replies