提交 a4ede8e0 编写于 作者: zlt2000's avatar zlt2000

修改回调页面

上级 cb0bbdff
......@@ -7,7 +7,7 @@
```sql
update oauth_client_details set
authorized_grant_types = 'authorization_code,password,refresh_token',
web_server_redirect_uri = 'http://127.0.0.1:8081/login.html'
web_server_redirect_uri = 'http://127.0.0.1:8081/callback.html'
where client_id = 'app'
```
......
......@@ -9,6 +9,6 @@ zlt:
sso:
client-id: app
client-secret: app
redirect-uri: http://127.0.0.1:8081/login.html
redirect-uri: http://127.0.0.1:8081/callback.html
access-token-uri: http://127.0.0.1:9900/api-uaa/oauth/token
user-info-uri: http://127.0.0.1:9900/api-user/users/current
\ No newline at end of file
......@@ -28,7 +28,7 @@
$('#clientId').html(clientId);
} else {//未登录
sessionStorage.setItem("visitUri", window.location.href);
window.location = uaaUri+'authorize?client_id='+clientId+'&redirect_uri=http://127.0.0.1:8081/login.html&response_type=code';
window.location = uaaUri+'authorize?client_id='+clientId+'&redirect_uri=http://127.0.0.1:8081/callback.html&response_type=code';
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册