-
authorizationserver
acts as an authorization server and provides a custom /userInfo user information endpoint. -
The
authorizationserver
registers a client:- clientId: relive-client
- clientSecret: relive-client
- redirectUri: http://127.0.0.1:8070/login/oauth2/code/messaging-client-authorization-code
- scope: profile
-
authorizationserver
uses Form authentication, username and password: admin/password. -
oauth2-login-client
is an OAuth2 client, which includes Form login and OAuth2 login. -
The
oauth2-login-client
Form login user (admin/password) is assigned the ROLE_SYSTEM role, and users with this role will see the following content on the page after successful login:Article List
- Java
- Python
- C++
-
oauth2-login-client
will also support OAuth2 login. Make GrantedAuthoritiesMapper map theauthorizationserver
authorization service role ROLE_ADMIN to the client service ROLE_OPERATION role. Users with the ROLE_OPERATION role will see the following content on the page after successful login:Article List
- Java
-
Start the service, visit http://127.0.0.1:8070/home. First use the username to log in, then log out, and use OAuth2 to log in, you will see different display information.
Files
oauth2-login
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||