Skip to content
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

Generate an impersonated token using a service account #156

Closed
Wlojtek opened this issue Feb 16, 2023 · 1 comment
Closed

Generate an impersonated token using a service account #156

Wlojtek opened this issue Feb 16, 2023 · 1 comment

Comments

@Wlojtek
Copy link

Wlojtek commented Feb 16, 2023

When I tried to hit gmail api (to send mails) I had to provide scopes and IMPERSONATED_ACCOUNT_EMAIL in claims list.

The documentation say for Goth.Token.fetch/1 :

:scopes - the list of token scopes, defaults to ["https://www.googleapis.com/auth/cloud-platform"] (ignored if :claims present)

I was not able to get it working using Goth.Token.fetch/1 only by using old Goth.Token.for_scope/2 function.
Is there any way allow provide both claims and scopes into Goth.Token.fetch/1?

@Wlojtek
Copy link
Author

Wlojtek commented Feb 16, 2023

closing by #155

@Wlojtek Wlojtek closed this as completed Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant