René's URL Explorer Experiment


Title: endpoints.get_current_user() "Unable to get authorized scopes" with firebase auth · Issue #161 · cloudendpoints/endpoints-python · GitHub

Open Graph Title: endpoints.get_current_user() "Unable to get authorized scopes" with firebase auth · Issue #161 · cloudendpoints/endpoints-python

X Title: endpoints.get_current_user() "Unable to get authorized scopes" with firebase auth · Issue #161 · cloudendpoints/endpoints-python

Description: I'm getting an error when calling endpoints.get_current_user() with firebase auth. Simple example below: audiences = { 'firebase': [firebase_id] } issuers = { 'firebase': endpoints.Issuer( 'https://securetoken.google.com/{}'.format(fireb...

Open Graph Description: I'm getting an error when calling endpoints.get_current_user() with firebase auth. Simple example below: audiences = { 'firebase': [firebase_id] } issuers = { 'firebase': endpoints.Issuer( 'https:/...

X Description: I'm getting an error when calling endpoints.get_current_user() with firebase auth. Simple example below: audiences = { 'firebase': [firebase_id] } issuers = { 'firebase': endpoi...

Opengraph URL: https://github.com/cloudendpoints/endpoints-python/issues/161

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"endpoints.get_current_user() \"Unable to get authorized scopes\" with firebase auth","articleBody":"I'm getting an error when calling `endpoints.get_current_user()` with firebase auth. Simple example below:\r\n\r\n```\r\naudiences = {\r\n    'firebase': [firebase_id]\r\n}\r\n\r\nissuers = {\r\n    'firebase': endpoints.Issuer(\r\n        'https://securetoken.google.com/{}'.format(firebase_id),\r\n        'https://www.googleapis.com/service_accounts/v1/metadata/x509/securetoken@system.gserviceaccount.com'\r\n    )\r\n}\r\n\r\nscopes = [\r\n    'https://www.googleapis.com/auth/userinfo'\r\n]\r\n\r\nallowed_client_ids = [\"firebase_auth\"]\r\n\r\ncollection = endpoints.api(name=api_name, version=api_version, scopes=scopes, base_path=api_path, issuers=issuers, audiences=audiences, allowed_client_ids=allowed_client_ids)\r\n\r\n```\r\n\r\n\r\n```\r\n    @endpoints.method(UserTestRequestContainer, UserMessage, name='user.test', path='user/test', http_method='GET')\r\n    def test(self, request):\r\n        user = endpoints.get_current_user()\r\n        logging.info(user)\r\n        logging.info('scopes: {}'.format(scopes))\r\n        if user is None:\r\n            raise endpoints.NotFoundException(\"user not found\")\r\n        return UserMessage()\r\n```\r\n\r\n\r\nIn the request log, it shows this:\r\n```\r\n2018-07-06 16:41:59.926 EDT\r\nUnable to get authorized scopes. (/base/data/home/apps/s~tvi-www/20180706t164046.410950432919376241/lib/endpoints/users_id_token.py:371)\r\nTraceback (most recent call last):\r\n  File \"/base/data/home/apps/s~tvi-www/20180706t164046.410950432919376241/lib/endpoints/users_id_token.py\", line 369, in _set_bearer_user_vars\r\n    authorized_scopes = oauth.get_authorized_scopes(sorted(all_scopes))\r\n  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\r\n    _maybe_call_get_oauth_user(scope)\r\n  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\r\n    _maybe_raise_exception()\r\n  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\r\n    raise InvalidOAuthTokenError(error_detail)\r\nInvalidOAuthTokenError\r\n```","author":{"url":"https://github.com/normmcgarry","@type":"Person","name":"normmcgarry"},"datePublished":"2018-07-06T20:50:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/161/endpoints-python/issues/161"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9940daee-b65f-6bca-74ac-0ca16a8f758e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB584:2EB4CD:C5482D:1162B08:6A4E8A34
html-safe-nonce8e1141cc9e6d4fbefad7d64711dd060805762f45ab13082fd47fe9994df0c7db
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTg0OjJFQjRDRDpDNTQ4MkQ6MTE2MkIwODo2QTRFOEEzNCIsInZpc2l0b3JfaWQiOiI2OTAwNTAzMDQ4OTE4ODI5NjIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac64b67641804ff868dc5bcaa3e641fd37b30e3e259bcef0e6f991248d5f19b072
hovercard-subject-tagissue:339067759
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudendpoints/endpoints-python/161/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f287ccc4d9677898e008b8447989644a721f822a14daccc4138ea8fe2ca02221/cloudendpoints/endpoints-python/issues/161
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f287ccc4d9677898e008b8447989644a721f822a14daccc4138ea8fe2ca02221/cloudendpoints/endpoints-python/issues/161
og:image:altI'm getting an error when calling endpoints.get_current_user() with firebase auth. Simple example below: audiences = { 'firebase': [firebase_id] } issuers = { 'firebase': endpoints.Issuer( 'https:/...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenormmcgarry
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-preview
go-importgithub.com/cloudendpoints/endpoints-python git https://github.com/cloudendpoints/endpoints-python.git
octolytics-dimension-user_id19231370
octolytics-dimension-user_logincloudendpoints
octolytics-dimension-repository_id65349604
octolytics-dimension-repository_nwocloudendpoints/endpoints-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id65349604
octolytics-dimension-repository_network_root_nwocloudendpoints/endpoints-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudendpoints/endpoints-python/issues/161#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudendpoints%2Fendpoints-python%2Fissues%2F161
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudendpoints%2Fendpoints-python%2Fissues%2F161
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=cloudendpoints%2Fendpoints-python
Reloadhttps://github.com/cloudendpoints/endpoints-python/issues/161
Reloadhttps://github.com/cloudendpoints/endpoints-python/issues/161
Reloadhttps://github.com/cloudendpoints/endpoints-python/issues/161
Please reload this pagehttps://github.com/cloudendpoints/endpoints-python/issues/161
cloudendpoints https://github.com/cloudendpoints
endpoints-pythonhttps://github.com/cloudendpoints/endpoints-python
Notifications https://github.com/login?return_to=%2Fcloudendpoints%2Fendpoints-python
Fork 15 https://github.com/login?return_to=%2Fcloudendpoints%2Fendpoints-python
Star 50 https://github.com/login?return_to=%2Fcloudendpoints%2Fendpoints-python
Code https://github.com/cloudendpoints/endpoints-python
Issues 22 https://github.com/cloudendpoints/endpoints-python/issues
Pull requests 4 https://github.com/cloudendpoints/endpoints-python/pulls
Actions https://github.com/cloudendpoints/endpoints-python/actions
Projects https://github.com/cloudendpoints/endpoints-python/projects
Security and quality 0 https://github.com/cloudendpoints/endpoints-python/security
Insights https://github.com/cloudendpoints/endpoints-python/pulse
Code https://github.com/cloudendpoints/endpoints-python
Issues https://github.com/cloudendpoints/endpoints-python/issues
Pull requests https://github.com/cloudendpoints/endpoints-python/pulls
Actions https://github.com/cloudendpoints/endpoints-python/actions
Projects https://github.com/cloudendpoints/endpoints-python/projects
Security and quality https://github.com/cloudendpoints/endpoints-python/security
Insights https://github.com/cloudendpoints/endpoints-python/pulse
endpoints.get_current_user() "Unable to get authorized scopes" with firebase authhttps://github.com/cloudendpoints/endpoints-python/issues/161#top
https://github.com/inklesspen
https://github.com/normmcgarry
normmcgarryhttps://github.com/normmcgarry
on Jul 6, 2018https://github.com/cloudendpoints/endpoints-python/issues/161#issue-339067759
inklesspenhttps://github.com/inklesspen
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.