diff --git a/firebase_admin/_token_gen.py b/firebase_admin/_token_gen.py index e2eaa5715..7af7b73b7 100644 --- a/firebase_admin/_token_gen.py +++ b/firebase_admin/_token_gen.py @@ -48,8 +48,8 @@ 'acr', 'amr', 'at_hash', 'aud', 'auth_time', 'azp', 'cnf', 'c_hash', 'exp', 'firebase', 'iat', 'iss', 'jti', 'nbf', 'nonce', 'sub' ]) -METADATA_SERVICE_URL = ('http://metadata/computeMetadata/v1/instance/service-accounts/' - 'default/email') +METADATA_SERVICE_URL = ('http://metadata.google.internal/computeMetadata/v1/instance/' + 'service-accounts/default/email') # Error codes COOKIE_CREATE_ERROR = 'COOKIE_CREATE_ERROR'