Skip to content

Commit

Permalink
docs: add RADIUS doc (casdoor#574)
Browse files Browse the repository at this point in the history
* 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
Chinoholo0807 authored Sep 27, 2023
1 parent ee57b2b commit 68bb104
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/radius/overview.md
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)
8 changes: 8 additions & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,14 @@ module.exports = {
"ldap/ldapserver",
],
},
{
type: "category",
label: "RADIUS",
link: {type: "generated-index"},
items: [
"radius/overview",
],
},
{
type: "category",
label: "Integrations",
Expand Down
Binary file added static/img/radius/radius_flow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/radius/set_org_in_request.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 68bb104

Please sign in to comment.