Skip to content

Commit

Permalink
token_security_ondemand, doc: more samples
Browse files Browse the repository at this point in the history
  • Loading branch information
emrahcom committed Nov 10, 2023
1 parent 22b69fb commit be23a60
Showing 1 changed file with 53 additions and 2 deletions.
55 changes: 53 additions & 2 deletions token_security_ondemand/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Security On-Demand

This plugin dynamically enables/disables lobby or set/unset password for the
meeting room.
meeting room. The participant can update these values if they have permission to
join the meeting room.

## Installation

Expand Down Expand Up @@ -53,7 +54,7 @@ meeting room.
systemctl restart prosody.service
```

## A token sample
## Token samples

A sample token body to activate lobby and set a password for a room:

Expand All @@ -77,3 +78,53 @@ A sample token body to activate lobby and set a password for a room:
"exp": 1601366180
}
```

To enable lobby:

```json
"context": {
"room": {
"lobby": true
}
}
```

To disable lobby:

```json
"context": {
"room": {
"lobby": false
}
}
```

To set a password:

```json
"context": {
"room": {
"password": "mypassword"
}
}
```

To unset password:

```json
"context": {
"room": {
"password": ""
}
}
```

To allow a participant to bypass security checks:

```json
"context": {
"user": {
"security_bypass": true
}
}
```

0 comments on commit be23a60

Please sign in to comment.