OAuth2
spring oauth2
Spring Cloud Gateway for Stateless Microservice Authorization
在单页应用中使用oauth
rest-api-spring-oauth2-angular
login() {
window.location.href =
'http://localhost:8083/auth/realms/baeldung/protocol/openid-connect/auth?
response_type=code&scope=openid%20write%20read&client_id=' +
this._service.clientId + '&redirect_uri='+ this._service.redirectUri;
}