Closed Wlojtek closed 1 year ago
When I tried to hit gmail api (to send mails) I had to provide scopes and IMPERSONATED_ACCOUNT_EMAIL in claims list.
scopes
IMPERSONATED_ACCOUNT_EMAIL
claims
The documentation say for Goth.Token.fetch/1 :
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?
Goth.Token.for_scope/2
closing by https://github.com/peburrows/goth/issues/155
When I tried to hit gmail api (to send mails) I had to provide
scopes
andIMPERSONATED_ACCOUNT_EMAIL
inclaims
list.The documentation say for
Goth.Token.fetch/1
:I was not able to get it working using
Goth.Token.fetch/1
only by using oldGoth.Token.for_scope/2
function. Is there any way allow provide bothclaims
andscopes
intoGoth.Token.fetch/1
?