fastapi_aad_auth.ui

UI Components and templates.

Includes:

  • static: static content (css/js/fonts) for the ui components

  • error.html: Template for error messages

  • login.html: Login page for UI login

  • user.html: View the user's information and get an access token

class fastapi_aad_auth.ui.UI(config: fastapi_aad_auth.config.Config, authenticator: fastapi_aad_auth.auth.Authenticator, base_context: Optional[Dict[str, Any]] = None)[source]

Provides Login endpoint methods, which are then wrapped in a factory method.

Initialise the UI based on the provided configuration.

Keyword Arguments
property routes

Return the routes for the UI.

Provides the login UI route, and if the routing config has the user_path set, it also provides the user description view (and token endpoint)