Giter VIP home page Giter VIP logo

sayi21cn / oauth-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from open-hand/choerodon-oauth

0.0 1.0 0.0 1.42 MB

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

License: Apache License 2.0

Smarty 0.31% Dockerfile 0.06% Java 51.31% JavaScript 9.61% CSS 0.53% HTML 13.30% Groovy 24.88%

oauth-server's Introduction

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.

oauth-server's People

Contributors

bohenmian avatar dengyouquan avatar longhe1996 avatar superlee007 avatar vinkdong avatar wmzzh117 avatar wuguokai avatar xeonice avatar yangui28 avatar zmfcn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.