comeNie / oauth-server

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

Home Page:http://choerodon.io

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 - iam-service database
  • redis - sessions & cache

Links

How to Contribute

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

About

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

http://choerodon.io

License:Apache License 2.0


Languages

Language:Java 51.3%Language:Groovy 24.9%Language:HTML 13.3%Language:JavaScript 9.6%Language:CSS 0.5%Language:Smarty 0.3%Language:Dockerfile 0.1%