`factory_allowed_auth_handlers`
Customize which AuthHandlers are available.
📄 Arguments
Section titled “📄 Arguments”| Name | Type | Description |
|---|---|---|
allowed |
List[AuthHandlerConfig] |
List of AuthHandlerConfig classes, contains the custom auth handlers. |
cat |
Cat | Cheshire Cat instance, allows you to use the framework components. |
↩️ Return
Section titled “↩️ Return”Type: List[AuthHandlerConfig]
The list of custom auth handlers.
✍ Example
Section titled “✍ Example”from cat.mad_hatter.decorators import hookfrom typing import List
@hook(priority=0)def factory_allowed_auth_handlers(allowed: List[AuthHandlerConfig], cat) -> List: # Add your custom auth handler configuration here allowed.append(CustomAuthHandlerConfig) return allowed