Annotate

.luacov @ 12997:0a56b84ec4ad

mod_tokenauth: Support for creating sub-tokens Properties of sub-tokens: - They share the same id as their parent token - Sub-tokens may not have their own sub-tokens (but may have sibling tokens) - They always have the same or shorter lifetime compared to their parent token - Revoking a parent token revokes all sub-tokens - Sub-tokens always have the same JID as the parent token - They do not have their own 'accessed' property - accessing a sub-token updates the parent token's accessed time Although this is a generic API, it is designed to at least fill the needs of OAuth2 refresh + access tokens (where the parent token is the refresh token and the sub-tokens are access tokens).
author Matthew Wild <mwild1@gmail.com>
date Sun, 26 Mar 2023 16:46:48 +0100
parent 9469:cd2f742e5826
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9469
cd2f742e5826 .luacov: Add config for luacov, exclude spec/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
1 exclude = {
cd2f742e5826 .luacov: Add config for luacov, exclude spec/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
2 "^%./spec/";
cd2f742e5826 .luacov: Add config for luacov, exclude spec/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
3 }