API网关的OpenID Connect 认证失败-问答-阿里云开发者社区-阿里云

开发者社区> xbull-lzy> 正文

API网关的OpenID Connect 认证失败

2018-07-13 18:10:55 2842 2

我使用文档上的java代码测试,OpenID Connect 认证失败: Request: Url: http://d00f1f77e0aa4b58b4574a218bff0a93-cn-shenzhen.alicloudapi.com/oauth/test?IdToken=eyJhbGciOiJSUzI1NiIsImtpZCI6IjU0NTllNTc0MGU1MTQ3ZWZiMjU0ZDA2NjNjNjIxZTY4In0.eyJqdGkiOiJkZHd3U0VlelZPYkpvUGswR1owVmxnIiwiaWF0IjoxNTMxNDUxNTY5LCJleHAiOjE1MzE0NTE2ODksIm5iZiI6MTUzMTQ1MTUwOSwic3ViIjoiWU9VUl9TVUJKRUNUIiwiYXVkIjoiWU9VUl9BVURJRU5DRSJ9.ICWdNnONQf4wSqQwztcK799lBC7blFYafKLObK6xtKdMwxL9gyY04NlB1uszs2ynAtZw57lKV0aHTvcfV9aihFZcCc6MoRz7ePnGtxZ5tX0NM69OB6Yh--wQGwk6sIp9IlWoozNOaptQkgX80cEonWGXHDph8BVceSExFCMuqUPaEikMMghxQwvvw67pBlvD6tBWyXMpmZPa7yib2NlapDDH5hHBrPqGGSW5fNGE-IAICw02BYULbDea4nlopubqV-8-xznR8cIgR1DzzOREKqkYS43EJ2us3aed_7J5ZisNPHgg6WFhZCTwYw4IXsZn1jpKpLuLHUcdw4IQnDHutQ&tk=12 Header: {"Host":"d00f1f77e0aa4b58b4574a218bff0a93-cn-shenzhen.alicloudapi.com","X-Ca-Timestamp":"1531461329236","gateway_channel":"http","User-Agent":"Apache-HttpClient/4.1.2 (java 1.6)","X-Ca-Request-Mode":"debug","Content-Type":"application/json; charset=utf-8"} Response: 401 Date: Fri, 13 Jul 2018 05:55:29 GMT Content-Type: application/json; charset=UTF-8 Content-Length: 0 Connection: keep-alive Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH Access-Control-Allow-Headers: X-Requested-With,X-Sequence,X-Ca-Key,X-Ca-Secret,X-Ca-Version,X-Ca-Timestamp,X-Ca-Nonce,X-Ca-API-Key,X-Ca-Stage,X-Ca-Client-DeviceId,X-Ca-Client-AppId,X-Ca-Signature,X-Ca-Signature-Headers,X-Ca-Signature-Method,X-Forwarded-For,X-Ca-Date,X-Ca-Request-Mode,Authorization,Content-Type,Accept,Accept-Ranges,Cache-Control,Range,Content-MD5 Access-Control-Max-Age: 172800 X-Ca-Request-Id: 7895B7FF-67AE-40D4-BB60-12A9F3556811 X-Ca-Error-Message: OpenId Connect Verify Fail: 243, Not found by keyId: 5459e5740e5147efb254d0663c621e68 Latency: 0 我生成的keyPair publicKey={"kty":"RSA","kid":"5459e5740e5147efb254d0663c621e68","alg":"ES256","n":"wi672wnI0wHaKhH_SU0n877nNfCfFt7L9XNsVOJ5FFk3_39b4qPAhCjJkvZOFqVFAm3aHYmoXrCHJDDiNkrMNJAqFJNaWCPsYBKQlK2iOaGMsYb5MAKTvf35pdZZFJLwyIgvSIsafczuDg6EMhzqmTdvb4XlbrQBONTavfqcn62_e6D6VJPPUawKacm6Kz6tXtp1Y5eIB6ZfvvQ2GKR94v1EbmicAAPq3U9pk3e7dyKOwFojq4ygPYdVxWZ7PChffyLS6UYaWRTZpHthfrJo1_iBpMzuTRxb26r3oM_0DCG7G9BCT8ql3j5AizUxf_yLjO48YteYrbljYE7VwW-hCw","e":"AQAB"} privateKey={"kty":"RSA","kid":"5459e5740e5147efb254d0663c621e68","alg":"ES256","n":"wi672wnI0wHaKhH_SU0n877nNfCfFt7L9XNsVOJ5FFk3_39b4qPAhCjJkvZOFqVFAm3aHYmoXrCHJDDiNkrMNJAqFJNaWCPsYBKQlK2iOaGMsYb5MAKTvf35pdZZFJLwyIgvSIsafczuDg6EMhzqmTdvb4XlbrQBONTavfqcn62_e6D6VJPPUawKacm6Kz6tXtp1Y5eIB6ZfvvQ2GKR94v1EbmicAAPq3U9pk3e7dyKOwFojq4ygPYdVxWZ7PChff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CEzv8Rk-I2w6vUdtuGH3nuOkpXD21lJwCFfPEJOOA0-66Mf6Cpmze5cF9C3qBHJZ5mSPE","qi":"SS2UnZmQ0s5-rKEM5peY7Y4zDo1ezzuRkVxSpyp6mu62pl-OUDmVi5cQ2bbK3U7uAOfZlZgG0uOOADXwZuQns6bEZ5iUG3mH_P5KItP8h55BDxPX-TWE_ksfLHj0_NLuqvciZUinUMBv-sa3-Gmk8_HZwIHUtBNx4urWKwlDNHQ"} idToken=eyJhbGciOiJSUzI1NiIsImtpZCI6IjU0NTllNTc0MGU1MTQ3ZWZiMjU0ZDA2NjNjNjIxZTY4In0.eyJqdGkiOiJkZHd3U0VlelZPYkpvUGswR1owVmxnIiwiaWF0IjoxNTMxNDUxNTY5LCJleHAiOjE1MzE0NTE2ODksIm5iZiI6MTUzMTQ1MTUwOSwic3ViIjoiWU9VUl9TVUJKRUNUIiwiYXVkIjoiWU9VUl9BVURJRU5DRSJ9.ICWdNnONQf4wSqQwztcK799lBC7blFYafKLObK6xtKdMwxL9gyY04NlB1uszs2ynAtZw57lKV0aHTvcfV9aihFZcCc6MoRz7ePnGtxZ5tX0NM69OB6Yh--wQGwk6sIp9IlWoozNOaptQkgX80cEonWGXHDph8BVceSExFCMuqUPaEikMMghxQwvvw67pBlvD6tBWyXMpmZPa7yib2NlapDDH5hHBrPqGGSW5fNGE-IAICw02BYULbDea4nlopubqV-8-xznR8cIgR1DzzOREKqkYS43EJ2us3aed_7J5ZisNPHgg6WFhZCTwYw4IXsZn1jpKpLuLHUcdw4IQnDHutQ

取消 提交回答
全部回答(2)
添加回答
相关问答

40

回答

[@徐雷frank][¥20]什么是JAVA的平台无关性

大河人家 2018-10-29 23:55:20 144307浏览量 回答数 40

162

回答

惊喜翻倍:免费ECS+免费环境配置~!(ECS免费体验6个月活动3月31日结束)

豆妹 2014-10-29 17:52:21 223056浏览量 回答数 162

8

回答

OceanBase 使用动画(持续更新)

mq4096 2019-02-20 17:16:36 333937浏览量 回答数 8

13

回答

[@饭娱咖啡][¥20]我想知道 Java 关于引用那一块的知识

心意乱 2018-10-31 18:44:12 142152浏览量 回答数 13

110

回答

OSS存储服务-客户端工具

newegg11 2012-05-17 15:37:18 292352浏览量 回答数 110

22

回答

爬虫数据管理【问答合集】

我是管理员 2018-08-10 16:37:41 146816浏览量 回答数 22

18

回答

阿里云开放端口权限

xcxx 2016-07-20 15:03:33 643253浏览量 回答数 18

31

回答

[@倚贤][¥20]刚学完html/css/js的新手学习servlet、jsp需要注意哪些问题?

弗洛伊德6 2018-10-27 21:52:43 145656浏览量 回答数 31

82

回答

OSS入门教程

belle.zhoux 2014-07-07 17:14:27 149547浏览量 回答数 82

24

回答

【精品问答】python技术1000问(1)

问问小秘 2019-11-15 13:25:00 471591浏览量 回答数 24
+关注
xbull-lzy
编程人员
0
文章
1
问答
相关电子书
更多
文娱运维技术
立即下载
《SaaS模式云原生数据仓库应用场景实践》
立即下载
《看见新力量:二》电子书
立即下载