Skip to content

`factory_allowed_auth_handlers`

Customize which AuthHandlers are available.

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.

Type: List[AuthHandlerConfig]

The list of custom auth handlers.

from cat.mad_hatter.decorators import hook
from 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