Giter Site home page Giter Site logo

casdoor / shenyu-plugin-auth Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 2.0 488 KB

Casdoor SSO Plugin for Apache Shenyu

Home Page: https://shenyu.apache.org/docs/plugin-center/security/casdoor

License: Apache License 2.0

Java 100.00%
apache auth authentication authorization casbin casdoor plugin shenyu iam middleware

shenyu-plugin-auth's Introduction

title description keywords
ShenYu
Using Casdoor in ShenYu
ShenYu

ShenYu has casdoor plugin to use casdoor

Step1. Deploy Casdoor

Firstly, the Casdoor should be deployed.

You can refer to the Casdoor official documentation for the Server Installation.

After a successful deployment, you need to ensure:

  • The Casdoor server is successfully running on http://localhost:8000.
  • Open your favorite browser and visit http://localhost:7001, you will see the login page of Casdoor.
  • Input admin and 123 to test login functionality is working fine.

Then you can quickly implement a casdoor based login page in your own app with the following steps.

Step2. Configure Casdoor application

1. Create or use an existing Casdoor application.

2. Add Your redirect url

Casdoor Application Setting

3. On the certificate editing page, you can see your Certificate.

Casdoor Certification Setting

Step3. Use casdoor plugin in shenyu

1. Config casdoor plugin in shenyu

Shenyu Config Plugin

note: because the shenyu only have Single line input box so we need add \n in every line of cert. Casdoor Certification Setting

You can copy it and paste it on the certificate of shenyu casdoor config.

You don't need save it in casdoor certificate editing page,because it just for copying.

2. Confing shenyu casdoor's plugin

Shenyu Casdoor You can config what you need to use casdoor config

3. Get the service and use

3.1 Visit the Web directly like

Shenyu Fail Login

3.2 Use casdoor login like this

Shenyu Login Shenyu Success Login

3.3 Carry token in Headers,you also can visit it

Shenyu token

3.4 It also can save name,id and organization in Headers so that you can use them in next time

shenyu-plugin-auth's People

Contributors

hsluoyz avatar jakiuncle avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

casdoor jakiuncle

shenyu-plugin-auth's Issues

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.