|
Hi everyone! Current StatusThe authentication flow is working (user can authenticate with Entra ID and gets redirected back), but I'm encountering a persistent error: "Failed to update SSO user. The user has no groups assigned that are available in shelf." This error occurs on both the initial login attempt and all subsequent login attempts. What I've Verified
Potential Issue IdentifiedWhen inspecting the Supabase Auth response, I noticed that Looking at the Shelf source code, it appears to process groups as an array. Example of what I'm seeing: {
"user_metadata": {
"custom_claims": {
"groups": "7d2c3756-9b5b-463a-89a0-4d5780daa9a6" // String instead of ["7d2c3756-9b5b-463a-89a0-4d5780daa9a6"]
}
}
}QuestionDo you have any suggestions for what the issue could be or how to debug it? |
Replies: 1 comment 1 reply
|
hey @AN0DA. This is due to how you made the connection to the IDP with the supabase cli. There are some example attributes files inside |
hey @AN0DA. This is due to how you made the connection to the IDP with the supabase cli. There are some example attributes files inside
ssofolder. You need to make sure to use./sso/attributes.jsonfor the connection. You can see how groups is set to array. I also remember i had some issues some time ago with this in supabase but I think they fixed it. You can always check the auth schema tables inside supabase and see if the entry is added correctly with groups being an array.