Commit graph

8 commits

Author SHA1 Message Date
Matthew Wild
32c38bc249 mod_tokenauth: Allow attaching an arbitrary data table to a token 2022-10-13 22:46:19 +01:00
Matthew Wild
12fc0febf1 mod_tokenauth: Remove expired tokens from storage 2022-10-06 16:00:39 +01:00
Matthew Wild
36afd999b1 mod_tokenauth: Invalidate tokens issued before most recent password change
This is a security improvement, to ensure that sessions authenticated using a
token (note: not currently possible in stock Prosody) are invalidated just
like password-authenticated sessions are.
2022-10-06 15:59:07 +01:00
Matthew Wild
f5768f63c9 mod_authz_internal, and more: New iteration of role API
These changes to the API (hopefully the last) introduce a cleaner separation
between the user's primary (default) role, and their secondary (optional)
roles.

To keep the code sane and reduce complexity, a data migration is needed for
people using stored roles in 0.12. This can be performed with

  prosodyctl mod_authz_internal migrate <host>
2022-08-17 16:38:53 +01:00
Matthew Wild
a0f2f9ee19 mod_tokenauth: New API that better fits how modules are using token auth
This also updates the module to the new role API, and improves support for
scope/role selection (currently treated as the same thing, which they almost
are).
2022-07-20 10:52:17 +01:00
Matthew Wild
40bb67c03b mod_tokenauth: Track creation time of tokens 2020-02-28 21:55:40 +00:00
Kim Alvefur
92c65ed9af mod_tokenauth: Handle tokens issued to bare hosts (eg components) 2020-02-28 14:13:04 +01:00
Matthew Wild
f6a365c970 mod_authtokens: Rename to mod_tokenauth for consistency with mod_saslauth 2020-02-26 22:46:15 +00:00
Renamed from plugins/mod_authtokens.lua (Browse further)