https://github.com/casdoor/shenyu-plugin-auth
Casdoor SSO Plugin for Apache Shenyu
https://github.com/casdoor/shenyu-plugin-auth
apache auth authentication authorization casbin casdoor gateway gateway-api iam java middleware plugin shenyu sso
Last synced: 13 days ago
JSON representation
Casdoor SSO Plugin for Apache Shenyu
- Host: GitHub
- URL: https://github.com/casdoor/shenyu-plugin-auth
- Owner: casdoor
- License: apache-2.0
- Created: 2022-08-29T10:32:53.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-01T14:45:24.000Z (over 3 years ago)
- Last Synced: 2025-03-03T11:19:45.808Z (over 1 year ago)
- Topics: apache, auth, authentication, authorization, casbin, casdoor, gateway, gateway-api, iam, java, middleware, plugin, shenyu, sso
- Language: Java
- Homepage: https://shenyu.apache.org/docs/plugin-center/security/casdoor
- Size: 477 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
---
title: ShenYu
description: Using Casdoor in ShenYu
keywords: [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](/docs/basic/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

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

## Step3. Use casdoor plugin in shenyu
### 1. Config casdoor plugin in shenyu

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

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

You can config what you need to use casdoor config
### 3. Get the service and use
#### 3.1 Visit the Web directly like

#### 3.2 Use casdoor login like this


#### 3.3 Carry token in Headers,you also can visit it

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