The following examples show you how to integrate this extension to a FastAPI App The flexible sub-package ignores the token_location setting — tokens from either header or body are always accepted.