fastapi_aad_auth.utilities

Utilities.

fastapi_aad_auth.utilities.bool_from_env(env_value: Union[bool, str]) bool[source]

Convert environment variable to boolean.

fastapi_aad_auth.utilities.expand_doc(klass: pydantic.main.ModelMetaclass) pydantic.main.ModelMetaclass[source]

Expand pydantic model documentation to enable autodoc.

fastapi_aad_auth.utilities.is_interactive(request: starlette.requests.Request)[source]

Check if a request is from an interactive client.

fastapi_aad_auth.utilities.klass_from_str(value: str)[source]

Convert an import path to a class.

fastapi_aad_auth.utilities.list_from_env(env_value: Union[List[str], str]) List[str][source]

Convert environment variable to list.