赞
踩
详情:
error: error="invalid_grant", error_description="Invalid redirect:
=uri does not match one of the registered values."
环境:
spring-security-oauth2
原因:
http://127.0.0.1:8003/oauth/authorize?client_id=client1&response_type=code&redirect_uri=uri
中的redirect_uri
和客户端信息不一致,如下代码中的redirectUris里的值
@Override
public void configure(ClientDetailsServiceConfigurer clients)
throws Exception {
clients.inMemory()
.withClient("client1")
//...
.redirectUris("uri")
.and()
//...
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。