At least one redirect_uri must be registered with the client

来源:6-2 实现标准的OAuth服务提供商

慕仰4458995

2018-08-13

老师我在访问:http://localhost:10003/oauth/authorize?response_type=code&client_id=awbeci&redirect_uri=http://example.com&scope=all

这个地址的时候报:

error="invalid_request", error_description="At least one redirect_uri must be registered with the client."

如何解决啊?

写回答

1回答

慕仰4458995

提问者

2018-08-14

解决了,在application.properties里面添加下面这段

#不加这个你页面死也不给你跳转,可能是新版本的原因吧,我也不知道
security.oauth2.client.registered-redirect-uri=http://example.com

0
1
他门说这就是人生
http://example.com是要指定什么url?
2019-09-04
共1条回复

Spring Security技术栈开发企业级认证与授权

Spring Security技术栈,REST风格开发常见接口,独立开发认证授权模块保证REST服务安全

2662 学习 · 1561 问题

查看课程