Skip to content

Commit a48bb51

Browse files
committed
Add docs for mod_fast_auth_token
1 parent 72f29f8 commit a48bb51

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

doc/configuration/Modules.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ This applies to situations such as sending messages or presences to mobile/SMS/e
9999
Implements [XEP-0215: External Service Discovery](http://xmpp.org/extensions/xep-0215.html) for discovering information about services external to the XMPP network.
100100
The main use-case is to help discover STUN/TURN servers to allow for negotiating media exchanges.
101101

102+
### [mod_fast_auth_token](../modules/mod_fast_auth_token.md)
103+
A module that implements [XEP-0484: Fast Authentication Streamlining Tokens](https://xmpp.org/extensions/xep-0484.html)..
104+
102105
### [mod_http_upload](../modules/mod_http_upload.md)
103106
Implements [XEP-0363: HTTP File Upload](https://xmpp.org/extensions/xep-0363.html) for coordinating with an XMPP server to upload files via HTTP and receive URLs that can be shared in messages.
104107

doc/modules/mod_fast_auth_token.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## Module Description
2+
3+
This module implements [XEP-0484: Fast Authentication Streamlining Tokens](https://xmpp.org/extensions/xep-0484.html).
4+
It provides services necessary to:
5+
6+
* issue auth tokens for authenticated users;
7+
* reconnect to the server using the tokens instead of the original auth method.
8+
9+
Tokens are stored in RDBMS.
10+
11+
It is not related to another similar module `mod_auth_token`.
12+
13+
## Options
14+
15+
### `modules.mod_fast_auth_token.backend`
16+
* **Syntax:** non-empty string
17+
* **Default:** `"rdbms"`
18+
* **Example:** `backend = "rdbms"`
19+
20+
Token storage backend. Currently only `"rdbms"` is supported.
21+
22+
### `modules.mod_fast_auth_token.validity_period`
23+
* **Syntax:** TOML table. Each key is either `access` or `rotate_before_expire`.Each value is a nested TOML table with the following mandatory keys: `value` (non-negative integer) and `unit` (`"days"`, `"hours"`, `"minutes"` or `"seconds"`).
24+
* **Default:** `{access = {value = 3, unit = "days"}, rotate_before_expire = {value = 6, unit = "hours"}}`
25+
* **Example:** `validity_period.access = {value = 30, unit = "minutes"}`
26+
27+
The user can use each token for `access` period of time before it expired.
28+
29+
The server would [send](https://xmpp.org/extensions/xep-0484.html#token-rotation)
30+
a new token at the login time `rotate_before_expire` time before it expires.
31+
Set it to 0 to disable automatic rotation.
32+
33+
## Example configuration
34+
35+
```toml
36+
[modules.mod_fast_auth_token]
37+
validity_period.access = {value = 1, unit = "days"}
38+
validity_period.rotate_before_expire = {value = 0, unit = "days"}
39+
```

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ nav:
133133
- 'RabbitMQ backend': 'modules/mod_event_pusher_rabbit.md'
134134
- 'SNS backend': 'modules/mod_event_pusher_sns.md'
135135
- 'mod_extdisco': 'modules/mod_extdisco.md'
136+
- 'mod_fast_auth_token': 'modules/mod_fast_auth_token.md'
136137
- 'mod_global_distrib': 'modules/mod_global_distrib.md'
137138
- 'mod_http_upload': 'modules/mod_http_upload.md'
138139
- 'mod_inbox': 'modules/mod_inbox.md'

0 commit comments

Comments
 (0)