-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calendar: Additional Scope enforced to be requested when it is not needed #17922
Comments
@TimurSadykov Is this something you can help with? |
@bunnis Would you attach the stacktrace? It tells file name and line number that causes the exception. "W" at the beginning is warning. |
@suztomo I don't have any indication of the line number that causes the exception, this is what I see in Logcat:
|
Can I see the stacktrace of this exception? |
|
Thank you. |
@blakeli0 No, sorry, it looks like this code does not use GUAC auth libs. |
any progress? |
@bunnis The main problem seems to be the "NEED_REMOTE_CONSENT" error. This seems to be service specific and related to app verification status or error handeling, do you have your app verified, have you tried to handle like in the example? |
@TimurSadykov I handle the error correctly and everything works. The main problem is that using the API vs Web, the permissions are different. Via Web I only need read-only permission the access the data. Using the API, if I request the read-only permission then the Error Handling will force me to request read and write permissions. Obviously this is a different behaviour than the Web. Please refer to my initial description in 4: Upon handling exception, Request_Permission is requesting Scope "https://www.googleapis.com/auth/calendar". This is not needed, as observed in https://developers.google.com/calendar/api/v3/reference/events/list, and selecting only the events.readonly scope |
gentle nudge @TimurSadykov |
Hello, can someone update the status of this? |
Still no updates? |
Environment details
Steps to reproduce
https://www.googleapis.com/auth/calendar.events.readonly"
Code example (simplified)
Stack trace
External references such as API reference guides
Any additional information below
I have tried debugging to understand where the enforced permission request comes from without success. From the link in External References the requested Scope is enough to list all events in the Calendar.
Thanks!
The text was updated successfully, but these errors were encountered: