Skip to content

[google_sign_in_web] Enable incremental authorization for Code Model. #139406

@ditman

Description

@ditman

Is there an existing issue for this?

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> scopes parameter to the requestServerAuthCode
  • Re-create the CodeClient as needed to support multiple requests
  • Pass the include_granted_scopes parameter when creating the client

Metadata

Metadata

Labels

P3Issues that are less important to the Flutter projectp: google_sign_inThe Google Sign-In pluginplatform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions