You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
using googleapis auth to get a valid JWT for a service account.
the auth process is runninf will but when it comes to extract the access token from the Oauth client, its value has a bunch of dots at the end.
This leads to failing in authenticating when using this access token in some headers as an Authorization bearer.
We are several to have this issue
See Stoackoverflow post here See post here
These dots are placeholders to pad the tokens because Google will be increasing the token size (see oauth2-proxy/oauth2-proxy#1218):
On August 23, 2021, we will roll out security and reliability improvements that will increase the sizes of OAuth 2.0 access tokens for all projects.
The padding does not affect the verification of the token (e.g. you can remove them), but it's recommended not to, so that you can verify your application will work when the token size increases. From the linked issue:
We strongly recommend that you use the documented token size limits of 2048 bytes and to remove any logic in your services/code that restricts its ability to process access tokens of certain sizes.
Hi,
using googleapis auth to get a valid JWT for a service account.
the auth process is runninf will but when it comes to extract the access token from the Oauth client, its value has a bunch of dots at the end.
This leads to failing in authenticating when using this access token in some headers as an Authorization bearer.
We are several to have this issue
See Stoackoverflow post here
See post here
Example of my code
Why all these dots at the end ? How to get rid off them ?
Thks
The text was updated successfully, but these errors were encountered: