/oauth-server

This service is the authorized authentication center of the choerodon microservices framework and is mainly responsible for user privilege and authorization.

Primary LanguageJavaApache License 2.0Apache-2.0

Oauth Server

This service is the authorized authentication center of the Choerodon Microservices Framework and is mainly responsible for user privilege and authorization.

Feature

Add addition authorized login function (WeChat login, etc.)

Requirements

The oauth-server depends on the iam-service database, so make sure that the iam-service database is initialized before using it.

Installation and Getting Started

  • 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

Usage

  1. 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 to tokenStore.
  2. 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.

Dependencies

  • MySQL - iam-service database
  • redis - sessions & cache

Links

How to Contribute

Pull requests are welcome! Follow to know for more information on how to contribute.