Repository navigation
Google auth: “Map Groups” blocks every login — Cloud Identity rejects the labels filter in searchDirectGroups (400 INVALID_ARGUMENT) #8230
VersionWiki.js 3.3.0 ( SummaryWith Map Groups enabled on a Google authentication strategy, every Google login fails with The cause is the query sent to Steps to reproduce
Actual resultThe login fails with Expected resultThe user's Google Groups are read and mapped to wiki groups of the same name. Reproduced outside Wiki.js (Google API Explorer, same user)
So the API, the OAuth scope and the user's permissions are fine. Only the labels clause in Where
const query = `member_key_id == '${member}' && '${DISCUSSION_FORUM_LABEL}' in labels`Suggested fixQuery with WorkaroundNone without patching the image. Turning Map Groups off restores login, but group membership then has to be maintained by hand. |
Replies: 2 comments
|
Can you try again with image |
|
Thanks, 3.3.0-dev.750f664 fixes it! 🙏 With Map Groups on (match by group email, unassign missing groups), Google login succeeds and the user is put in the matching Wiki.js group. Removing the Google group membership removes the Wiki.js group on the next login. One more thing I noticed: users created by SCIM don’t get any of the default Wiki.js groups. They aren’t added to the Users group, and the Google strategy’s “Assign to group(s)” setting doesn’t apply to them either (that setting is only shown when Registration is on, and Registration is off in our setup because SCIM creates the accounts). Group mapping on Google login doesn’t fill this in. It adds the groups Google reports, but it never adds Users or the “Assign to group(s)” groups to an account that doesn’t already have them. Would it be possible to either:
|
Can you try again with image
3.3.0-dev.750f664with the "Auth Debug" flag enabled? If the mapping still doesn't work, please share the log entries which should have more info now.