-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/packages
#9267Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectp: google_sign_inThe Google Sign-In pluginThe Google Sign-In pluginplatform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Use case
It's not super clear by the instructions, however the API seems to suggest that the CodeClient is able to do incremental authorization through the include_granted_scopes configuration value.
The current implementation of google_sign_in_web exposes a CodeClient that only supports setting scopes when it's created, but not again when it's used.
Proposal
Modify the API that the web plugin exposes of the CodeClient so additional scopes can be requested as needed. This might entail:
- Add a
List<String> scopesparameter to therequestServerAuthCode - Re-create the
CodeClientas needed to support multiple requests - Pass the
include_granted_scopesparameter when creating the client
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectp: google_sign_inThe Google Sign-In pluginThe Google Sign-In pluginplatform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Type
Projects
Status
Done