修改回调页面
This commit is contained in:
@@ -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
|
||||
@@ -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';
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user