JWKS Error

Hello, I set up the oidc provider and configured the sso plugin, but when I tried to log in with sso, this is exactly where I got stuck const key = keys.find((key) => key.kid === header.kid); I guess this place doesn't give the right answer @bekacru @Ping
No description
11 Replies
Furkan Özay
Furkan ÖzayOP2w ago
No description
bekacru
bekacru2w ago
is the OIDC provider using the OIDC plugin from better auth?
Furkan Özay
Furkan ÖzayOP2w ago
yes this error occurs when I try to login using better-auth oidc provider and better-auth sso plugin @bekacru
bekacru
bekacru2w ago
The OIDC plugin doesn't implement jwk endpoint yet. We should have a way to disable it in the sso plugin.
Furkan Özay
Furkan ÖzayOP2w ago
can you tell me how the settings file should look like?
bekacru
bekacru2w ago
Try to use the generic oauth plugin insted. I'll check with the SSO plugin later and will let you know.
Furkan Özay
Furkan ÖzayOP2w ago
thank you I think there is also an int userId problem here, since it is a numeric id, coming as a string creates a problem. @bekacru
Furkan Özay
Furkan ÖzayOP2w ago
when I try to use it like this, the relation does not work, user information cannot be retrieved
No description
Furkan Özay
Furkan ÖzayOP2w ago
No description
Furkan Özay
Furkan ÖzayOP2w ago
@here
No description
bekacru
bekacru2w ago
okay I'll take a look

Did you find this page helpful?