Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Support target audience #80

Open
Schwusch opened this issue Sep 4, 2020 · 0 comments
Open

Support target audience #80

Schwusch opened this issue Sep 4, 2020 · 0 comments

Comments

@Schwusch
Copy link

Schwusch commented Sep 4, 2020

When setting a scope with target audience like this

final client = await clientViaServiceAccount(credentials, ['IAP_CLIENT_ID.apps.googleusercontent.com']);

JwtFlow.run() fails with

Exception: Unable to obtain credentials. Invalid response from server.
#0      JwtFlow.run (package:googleapis_auth/src/oauth2_flows/jwt.dart:89:7)
<asynchronous suspension>
#1      clientViaServiceAccount (package:googleapis_auth/auth_io.dart:200:30)

Since the response is structured like this

{
  "id_token": "<JWT_TOKEN>"
}

with missing fields like token_type, expires_in and access_token.

I can find no way of using target audience. Am I missing something?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant