stonechen03 / oauth-server

微服务认证服务

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
  • Kafka

Links

Reporting Issues

If you find any shortcomings or bugs, please describe them in the issue.

How to Contribute

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

About

微服务认证服务

License:Apache License 2.0


Languages

Language:Java 49.4%Language:Groovy 25.3%Language:HTML 14.1%Language:JavaScript 10.2%Language:CSS 0.6%Language:Smarty 0.3%Language:Dockerfile 0.1%