Class tigrbl_auth.backends.ApiKeyBackend
tigrbl_auth.backends.ApiKeyBackend
Authenticate a principal via raw API key string.
- Only active, non-expired keys are valid.
- The raw secret is never stored; verification is via BLAKE2b-256 digest.
authenticate
async
authenticate(db, api_key)
Source code in tigrbl_auth/backends.py
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
|