docs: add Custom Claims authorization method for PocketID

This commit is contained in:
kastov
2025-12-20 01:20:04 +03:00
parent 427604651f
commit 40d733f849
4 changed files with 76 additions and 0 deletions

View File

@@ -15,3 +15,22 @@ After creating the OAuth2 application copy the `Client ID` and `Client Secre
In the `Plain Domain` field, enter the domain address where your PocketID is located.
Just enter the domain name without the path and `https://`, for example: `pocketid.your-domain.com`
### Custom Claims (v2.4.0+)
Remnawave also supports authorization using Custom Claims.
When using this method, you do not need to specify an array of email addresses.
Key
```
remnawaveAccess
```
Value
```
true
```
Accordingly, if a user has this key (`remnawaveAccess: true`) in their token, they will be authorized.

View File

@@ -15,3 +15,22 @@ After creating the OAuth2 application copy the `Client ID` and `Client Secre
In the `Plain Domain` field, enter the domain address where your PocketID is located.
Just enter the domain name without the path and `https://`, for example: `pocketid.your-domain.com`
### Custom Claims (v2.4.0+)
Remnawave also supports authorization using Custom Claims.
When using this method, you do not need to specify an array of email addresses.
Key
```
remnawaveAccess
```
Value
```
true
```
Accordingly, if a user has this key (`remnawaveAccess: true`) in their token, they will be authorized.

View File

@@ -14,3 +14,22 @@ https://YOUR_PANEL_DOMAIN/oauth2/callback/pocketid
После создания OAuth2 приложения скопируйте `Client ID` и `Client Secret`. Вставьте эти данные в соответствующем разделе. А чуть ниже введите список email-адресов для которых будет разрешен вход.
В поле `Домен` (`Plain Domain`) введите доменный адрес, на котором у вас расположен PocketID. Достаточно ввести просто доменное имя без пути и https://, например: `pocketid.your-domain.com`
### Custom Claims (v2.4.0+)
Remnawave так же поддерживает авторизацию через добавление Custom Claims.
При использовании этого метода, массив email-адресов можно не указывать.
Ключ
```
remnawaveAccess
```
Значение
```
true
```
Соотвественно, если пользователь имеет этот ключ (`remnawaveAccess: true`) в токене, то он будет авторизован.

View File

@@ -15,3 +15,22 @@ After creating the OAuth2 application copy the `Client ID` and `Client Secre
In the `Plain Domain` field, enter the domain address where your PocketID is located.
Just enter the domain name without the path and `https://`, for example: `pocketid.your-domain.com`
### Custom Claims (v2.4.0+)
Remnawave also supports authorization using Custom Claims.
When using this method, you do not need to specify an array of email addresses.
Key
```
remnawaveAccess
```
Value
```
true
```
Accordingly, if a user has this key (`remnawaveAccess: true`) in their token, they will be authorized.