Title: oidcmsg.exception.MissingSigningKey · Issue #44 · IdentityPython/JWTConnect-Python-OidcRP · GitHub
Open Graph Title: oidcmsg.exception.MissingSigningKey · Issue #44 · IdentityPython/JWTConnect-Python-OidcRP
X Title: oidcmsg.exception.MissingSigningKey · Issue #44 · IdentityPython/JWTConnect-Python-OidcRP
Description: That's the log: 2021-06-05 15:52:27,643 urllib3.connectionpool DEBUG https://127.0.0.1:8000 "GET /static/jwks.json HTTP/1.1" 404 179 2021-06-05 15:52:27,643 cryptojwt.key_bundle WARNING HTTP status 404 reading remote JWKS from https://12...
Open Graph Description: That's the log: 2021-06-05 15:52:27,643 urllib3.connectionpool DEBUG https://127.0.0.1:8000 "GET /static/jwks.json HTTP/1.1" 404 179 2021-06-05 15:52:27,643 cryptojwt.key_bundle WARNING HTTP status...
X Description: That's the log: 2021-06-05 15:52:27,643 urllib3.connectionpool DEBUG https://127.0.0.1:8000 "GET /static/jwks.json HTTP/1.1" 404 179 2021-06-05 15:52:27,643 cryptojwt.key_bundle WARNI...
Opengraph URL: https://github.com/IdentityPython/JWTConnect-Python-OidcRP/issues/44
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"oidcmsg.exception.MissingSigningKey","articleBody":"\r\n\r\n\r\nThat's the log:\r\n````\r\n2021-06-05 15:52:27,643 urllib3.connectionpool DEBUG https://127.0.0.1:8000 \"GET /static/jwks.json HTTP/1.1\" 404 179\r\n2021-06-05 15:52:27,643 cryptojwt.key_bundle WARNING HTTP status 404 reading remote JWKS from https://127.0.0.1:8000/static/jwks.json\r\n2021-06-05 15:52:27,643 cryptojwt.key_bundle ERROR Key bundle update failed: Remote key update from 'https://127.0.0.1:8000/static/jwks.json' failed, HTTP status 404\r\n2021-06-05 15:52:27,644 oidcrp.service ERROR Got exception while verifying response: alg=RS256\r\n2021-06-05 15:52:27,644 oidcrp.oauth2 ERROR alg=RS256\r\n2021-06-05 15:52:27,644 oidcrp.rp_handler ERROR ['Traceback (most recent call last):\\n', ' File \"/home/wert/DEV/IdentityPython/OIDC/env/lib/python3.8/site-packages/oidcrp/oauth2/__init__.py\", line 156, in service_request\\n response = service.get_response_ext(url, method, body, response_body_type, headers,\\n', \"AttributeError: 'AccessToken' object has no attribute 'get_response_ext'\\n\", '\\nDuring handling of the above exception, another exception occurred:\\n\\n', 'Traceback (most recent call last):\\n', ' File \"/home/wert/DEV/IdentityPython/OIDC/env/lib/python3.8/site-packages/oidcrp/rp_handler.py\", line 489, in get_access_token\\n tokenresp = client.do_request(\\n', ' File \"/home/wert/DEV/IdentityPython/OIDC/env/lib/python3.8/site-packages/oidcrp/oauth2/__init__.py\", line 91, in do_request\\n return self.service_request(_srv, response_body_type=response_body_type,\\n', ' File \"/home/wert/DEV/IdentityPython/OIDC/env/lib/python3.8/site-packages/oidcrp/oauth2/__init__.py\", line 159, in service_request\\n response = self.get_response(service, url, method, body, response_body_type, headers,\\n', ' File \"/home/wert/DEV/IdentityPython/OIDC/env/lib/python3.8/site-packages/oidcrp/oauth2/__init__.py\", line 131, in get_response\\n return self.parse_request_response(service, resp,\\n', ' File \"/home/wert/DEV/IdentityPython/OIDC/env/lib/python3.8/site-packages/oidcrp/oauth2/__init__.py\", line 212, in parse_request_response\\n return service.parse_response(reqresp.text, value_type,\\n', ' File \"/home/wert/DEV/IdentityPython/OIDC/env/lib/python3.8/site-packages/oidcrp/service.py\", line 558, in parse_response\\n resp.verify(**vargs)\\n', ' File \"/home/wert/DEV/IdentityPython/OIDC/env/lib/python3.8/site-packages/oidcmsg/oidc/__init__.py\", line 354, in verify\\n if not verify_id_token(self, **kwargs):\\n', ' File \"/home/wert/DEV/IdentityPython/OIDC/env/lib/python3.8/site-packages/oidcmsg/oidc/__init__.py\", line 318, in verify_id_token\\n idt = IdToken().from_jwt(str(msg[claim]), **args)\\n', ' File \"/home/wert/DEV/IdentityPython/OIDC/env/lib/python3.8/site-packages/oidcmsg/message.py\", line 532, in from_jwt\\n raise MissingSigningKey(\"alg=%s\" % _header[\"alg\"])\\n', 'oidcmsg.exception.MissingSigningKey: alg=RS256\\n']\r\n````\r\n\r\nWe know the nature of this exception, the RP cannot fetch the OP's jwks\r\n````\r\n2021-06-05 15:52:27,643 urllib3.connectionpool DEBUG https://127.0.0.1:8000 \"GET /static/jwks.json HTTP/1.1\" 404 179\r\n2021-06-05 15:52:27,643 cryptojwt.key_bundle WARNING HTTP status 404 reading remote JWKS from \r\n````\r\n\r\nBut I believe that's something that must be improved to UX, they have to understand what's going wrong without being python developers :)\r\n\r\nWhen the error occours we must show to user a clear error message about the cause\r\n\r\n","author":{"url":"https://github.com/peppelinux","@type":"Person","name":"peppelinux"},"datePublished":"2021-06-05T13:58:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/44/JWTConnect-Python-OidcRP/issues/44"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8fba6655-10bf-6065-7151-e5b39353974f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 949C:1000D2:3A238E:4FFB0A:69772B6D |
| html-safe-nonce | 28f5ce31b14a2658cd28824f0efb23bed4cdcaed929d759dcb67fe95600995e7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDlDOjEwMDBEMjozQTIzOEU6NEZGQjBBOjY5NzcyQjZEIiwidmlzaXRvcl9pZCI6IjM4MTU2NjMzNzAwMzU5OTc1NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cb66edb17ea4e151c1b82ff0257c724583146ddcf88c894aff7da8bb420758cb |
| hovercard-subject-tag | issue:912276101 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IdentityPython/JWTConnect-Python-OidcRP/44/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3532896bbb4661d71d38d8e7b6810112eb0d289e7e7a4dd7ad2d9fc39f216e51/IdentityPython/JWTConnect-Python-OidcRP/issues/44 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3532896bbb4661d71d38d8e7b6810112eb0d289e7e7a4dd7ad2d9fc39f216e51/IdentityPython/JWTConnect-Python-OidcRP/issues/44 |
| og:image:alt | That's the log: 2021-06-05 15:52:27,643 urllib3.connectionpool DEBUG https://127.0.0.1:8000 "GET /static/jwks.json HTTP/1.1" 404 179 2021-06-05 15:52:27,643 cryptojwt.key_bundle WARNING HTTP status... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | peppelinux |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/IdentityPython/JWTConnect-Python-OidcRP git https://github.com/IdentityPython/JWTConnect-Python-OidcRP.git |
| octolytics-dimension-user_id | 29101624 |
| octolytics-dimension-user_login | IdentityPython |
| octolytics-dimension-repository_id | 111778784 |
| octolytics-dimension-repository_nwo | IdentityPython/JWTConnect-Python-OidcRP |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 111778784 |
| octolytics-dimension-repository_network_root_nwo | IdentityPython/JWTConnect-Python-OidcRP |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width