forked from casdoor/casdoor-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: support wechat pay * docs: add radius doc * docs: fix typo * docs: fix typo * docs: fix typo * docs: add language specified for code block * docs: fix typo
- Loading branch information
1 parent
ee57b2b
commit 68bb104
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: Overview | ||
description: Use Casdoor as RADIUS server | ||
keywords: [RADIUS] | ||
authors: [Chinoholo0807] | ||
--- | ||
|
||
You can use Casdoor as a RADIUS server. RADIUS is a client/server protocol, the client can be a NAS or any computer running RADIUS client software. | ||
|
||
## Congiure | ||
|
||
Before deploying Casdoor, you need to modify the RADIUS-related configurations in the `conf/app.conf` file, including the server port and secret: | ||
|
||
```text | ||
radiusServerPort = 1812 | ||
radiusSecret = "secret" | ||
``` | ||
|
||
Now you can use Casdoor as RADIUS server. | ||
|
||
## Use Casdoor as RADIUS server | ||
|
||
Casdoor currently can support follow standard RADIUS request: | ||
|
||
- `Access-Request` : The authentication request message is sent by the RADIUS client to the Casdoor. Casdoor determines whether to allow access based on the user information carried in the message and reply with `Access-Reject` or `Access-Accept`. | ||
|
||
- `Accounting-Request` : When a user starts or stops accessing network resources, the RADIUS client will send accounting request (Start/Interim-update/Stop) message to Casdoor. Casdoor will record relevant accounting request message and reply with `Accounting-Response`. | ||
|
||
![redius flow](/img/radius/radius_flow.png) | ||
|
||
Since Casdoor use Organization to manage User, where each User belongs to a specific Organization, the `Class` attribute in the request needs to be set as the User's Organization. | ||
|
||
![set organization in request](/img/radius/set_org_in_request.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.