S
SolidJS17mo ago
xTEA418

How to do OIDC authentication

How can I add OIDC authentication to my solid (solid-start) frontend, I have a keycloak instance configured and working. I want to redirect unauthenticated users to the keycloak instance (the thing where they have to authenticate) and then get the JWT and uee that in requests
6 Replies
xTEA418
xTEA418OP17mo ago
I just found @absolid/solid-keycloak is this still maintained?
tiberius
tiberius5mo ago
hey @@ did you find any solution? Looking for it right now :fabio:
xTEA418
xTEA418OP5mo ago
Iirc I hacked together something with oidc-client-ts
xTEA418
xTEA418OP5mo ago
GitHub
GitHub - authts/oidc-client-ts: OpenID Connect (OIDC) and OAuth2 pr...
OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications - authts/oidc-client-ts
tiberius
tiberius5mo ago
thanks, did you manage to handle the auth state on server side? Like when user makes the initial request to the server? I'm thinking through it right now, but it's quite hard with the default keycloak-js lib
xTEA418
xTEA418OP5mo ago
I didn't use solid start, just client side vite
Want results from more Discord servers?
Add your server