This service is the authorized authentication center of the Choerodon Microservices Framework and is mainly responsible for user privilege and authorization.
Add addition authorized login function (WeChat login, etc.)
The oauth-server
depends on the iam-service database, so make sure that the iam-service
database is initialized before using it.
-
database: The
iam-service
database of the used Choerodon Microservices Framework. -
Then run the project in the root directory of the project:
mvn spring-boot:run
- User login authorization :
- The user completes the authorization in oauth through the username and password.
- Oauth will produce an
access_token
based on the user and the authenticated client, and save it totokenStore
.
- Access Resource Service Certification for user :
- The user requests carrying the
access_token
. After the oauth finishes checking, the request is forwarded by the gateway to the corresponding resource service. - Return a 401 error for user request illegally and jumps to the login page to reauthorize.
- The user requests carrying the
- MySQL - iam-service database
- redis - sessions & cache
Pull requests are welcome! Follow to know for more information on how to contribute.