File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -479,16 +479,16 @@ IDToken verification can be done for various type of IDTokens using the
479
479
and ES256 algorithms. However, ES256 algorithm won't be available unless
480
480
`cryptography ` dependency of version at least 1.4.0 is installed. You can check
481
481
the dependency with `pip freeze ` or try `from google.auth.crypt import es256 `.
482
- The following is an example of verifying ID tokens:
482
+ The following is an example of verifying ID tokens : :
483
483
484
484
from google.auth2 import id_token
485
485
486
486
request = google.auth.transport.requests.Request()
487
487
488
488
try:
489
- decoded_token = id_token.verify_token(token_to_verify,request)
489
+ decoded_token = id_token.verify_token(token_to_verify,request)
490
490
except ValueError:
491
- # Verification failed.
491
+ # Verification failed.
492
492
493
493
A sample end-to-end flow using an ID Token against a Cloud Run endpoint maybe ::
494
494
You can’t perform that action at this time.
0 commit comments