zkemail/archive.prove.email

Admin: Make the email header oauth scope non-optional so that it doesn't fail when people doesn't explicitly check it

Closed this issue · 4 comments

Request failed with status code 500 - Error: Insufficient permission
Screenshot_2024-03-27_07-31-32

Screenshot_2024-03-27_07-31-07

@Divide-By-0 I didn't find any possibility to change the scope to non-optional via Google's settings.
But if we can detect whether the user has enabled this permission, then we can add a message explaining that they have not enabled metadata access, and need to update their permissions. (Maybe that's even what you meant in the first place?)

Noticed that when the user signs in a second time, if the metadata scope permission was not given the first time, the screen looks a bit different, and says
"DKIM Lookup wants additional access to your Google Account"
Screenshot_2024-03-27_11-19-35

added this screen when the user has not set the permission
Screenshot_2024-03-27_12-08-57

solved in 6ca94ce