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
{{ message }}
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
endpoints.get_current_user() "Unable to get authorized scopes" with firebase auth #161
@endpoints.method(UserTestRequestContainer, UserMessage, name='user.test', path='user/test', http_method='GET')
def test(self, request):
user = endpoints.get_current_user()
logging.info(user)
logging.info('scopes: {}'.format(scopes))
if user is None:
raise endpoints.NotFoundException("user not found")
return UserMessage()
In the request log, it shows this:
2018-07-06 16:41:59.926 EDT
Unable to get authorized scopes. (/base/data/home/apps/s~tvi-www/20180706t164046.410950432919376241/lib/endpoints/users_id_token.py:371)
Traceback (most recent call last):
File "/base/data/home/apps/s~tvi-www/20180706t164046.410950432919376241/lib/endpoints/users_id_token.py", line 369, in _set_bearer_user_vars
authorized_scopes = oauth.get_authorized_scopes(sorted(all_scopes))
File "/base/alloc/tmpfs/dynamic_runtimes/python27/b93f87cfaa0115e5_unzipped/python27_lib/versions/1/google/appengine/api/oauth/oauth_api.py", line 171, in get_authorized_scopes
_maybe_call_get_oauth_user(scope)
File "/base/alloc/tmpfs/dynamic_runtimes/python27/b93f87cfaa0115e5_unzipped/python27_lib/versions/1/google/appengine/api/oauth/oauth_api.py", line 220, in _maybe_call_get_oauth_user
_maybe_raise_exception()
File "/base/alloc/tmpfs/dynamic_runtimes/python27/b93f87cfaa0115e5_unzipped/python27_lib/versions/1/google/appengine/api/oauth/oauth_api.py", line 239, in _maybe_raise_exception
raise InvalidOAuthTokenError(error_detail)
InvalidOAuthTokenError
Activity
normmcgarry commentedon Jul 7, 2018
Does the Firebase Auth only work with Google Sign-In in this use case? I'm using email/password signup.
inklesspen commentedon Oct 1, 2018
Frameworks supports both JWTs and opaque OAuth access tokens, but it only supports OAuth access tokens from Google.
MoSehsah commentedon Jul 11, 2019
@normmcgarry are you able to get this working ? I'm trying to do the same thing but I get the same error.