CallbackHandler
authx._internal._callback._CallbackHandler
Bases: Generic[T]
Base class for callback handlers in AuthX.
PARAMETER | DESCRIPTION |
---|---|
Generic |
Model type
TYPE:
|
RAISES | DESCRIPTION |
---|---|
AttributeError
|
If callback is not set |
Base class for callback handlers in AuthX.
PARAMETER | DESCRIPTION |
---|---|
model |
TYPE:
|
PARAMETER | DESCRIPTION |
---|---|
model |
Model instance
TYPE:
|
Source code in authx/_internal/_callback.py
set_callback_get_model_instance
set_callback_token_blocklist
set_subject_getter
Set the callback to run for subject retrieval and serialization
PARAMETER | DESCRIPTION |
---|---|
callback |
TYPE:
|
set_token_blocklist
Set the callback to run for validation of revoked tokens
PARAMETER | DESCRIPTION |
---|---|
callback |
TYPE:
|
is_token_in_blocklist
Check if token is in blocklist
PARAMETER | DESCRIPTION |
---|---|
token |
TYPE:
|
**kwargs |
DEFAULT:
|