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

开发者社区> 问答> 正文

API网关的OpenID Connect 认证失败

2018-07-13 18:10:55 3232 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_e6D6VJPPUawKacm6Kz6tXtp1Y5eIB6ZfvvQ2GKR94v1EbmicAAPq3U9pk3e7dyKOwFojq4ygPYdVxWZ7PChffyLS6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8Rk-I2w6vUdtuGH3nuOkpXD21lJwCFfPEJOOA0-66Mf6Cpmze5cF9C3qBHJZ5mSPE","qi":"SS2UnZmQ0s5-rKEM5peY7Y4zDo1ezzuRkVxSpyp6mu62pl-OUDmVi5cQ2bbK3U7uAOfZlZgG0uOOADXwZuQns6bEZ5iUG3mH_P5KItP8h55BDxPX-TWE_ksfLHj0_NLuqvciZUinUMBv-sa3-Gmk8_HZwIHUtBNx4urWKwlDNHQ"} idToken=eyJhbGciOiJSUzI1NiIsImtpZCI6IjU0NTllNTc0MGU1MTQ3ZWZiMjU0ZDA2NjNjNjIxZTY4In0.eyJqdGkiOiJkZHd3U0VlelZPYkpvUGswR1owVmxnIiwiaWF0IjoxNTMxNDUxNTY5LCJleHAiOjE1MzE0NTE2ODksIm5iZiI6MTUzMTQ1MTUwOSwic3ViIjoiWU9VUl9TVUJKRUNUIiwiYXVkIjoiWU9VUl9BVURJRU5DRSJ9.ICWdNnONQf4wSqQwztcK799lBC7blFYafKLObK6xtKdMwxL9gyY04NlB1uszs2ynAtZw57lKV0aHTvcfV9aihFZcCc6MoRz7ePnGtxZ5tX0NM69OB6Yh--wQGwk6sIp9IlWoozNOaptQkgX80cEonWGXHDph8BVceSExFCMuqUPaEikMMghxQwvvw67pBlvD6tBWyXMpmZPa7yib2NlapDDH5hHBrPqGGSW5fNGE-IAICw02BYULbDea4nlopubqV-8-xznR8cIgR1DzzOREKqkYS43EJ2us3aed_7J5ZisNPHgg6WFhZCTwYw4IXsZn1jpKpLuLHUcdw4IQnDHutQ

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

1

回答

视觉服务的API公共参数问题?

2020-03-24 15:01:55 274浏览量 回答数 1

1

回答

[视觉计算服务]支持哪些安全监管认证?

2020-03-24 15:16:42 304浏览量 回答数 1

4

回答

云虚拟主机免费版使用wordpress无法连接Mysql数据库

2016-11-26 15:14:47 3153浏览量 回答数 4

0

回答

请问云搜索功能什么时候支持非论坛型网站申请API

2012-02-09 14:17:24 4239浏览量 回答数 0

1

回答

PHP mysql_connect() 函数详解

2016-02-05 15:02:01 2076浏览量 回答数 1

1

回答

‘=-yD Kerberos 认证问题

2021-12-08 11:24:56 351浏览量 回答数 1

5

回答

400元转让网站云套餐C!一个月的,11月9日开通的。

2011-11-10 15:38:25 7389浏览量 回答数 5

1

回答

警告:mysqli_select_db()恰好需要2个参数,其中1个在C:\中给出?mysql

2020-05-17 20:23:46 622浏览量 回答数 1

2

回答

需求ACP认证工程 师(有偿)

2017-05-30 22:57:21 2700浏览量 回答数 2

2

回答

获取完整免登过程中验证身份的appId及appSecret

2016-11-24 10:08:51 7301浏览量 回答数 2
+关注
xbull-lzy
编程人员
0
文章
1
问答
问答排行榜
最热
最新
相关电子书
更多
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载
冬季实战营第三期:MySQL数据库进阶实战
立即下载