app.py
Main app for the Data Tracker.
-
app.api_base()[source]
List entities.
-
app.error_bad_request(_)[source]
Make sure a simple 400 is returned instead of an html page.
-
app.error_forbidden(_)[source]
Make sure a simple 403 is returned instead of an html page.
-
app.error_not_found(_)[source]
Make sure a simple 404 is returned instead of an html page.
-
app.error_unauthorized(_)[source]
Make sure a simple 401 is returned instead of an html page.
-
app.finalize(response)[source]
Finalize the response and clean up.
-
app.heartbeat()[source]
Return 200 to show that the api is active.
-
app.key_login()[source]
Log in using an apikey.
-
app.login_types()[source]
List login types.
-
app.logout()[source]
Log out the current user.
-
app.oidc_authorize(auth_name)[source]
Authorize a login using OpenID Connect (e.g. Elixir AAI).
-
app.oidc_login(auth_name)[source]
Perform a login using OpenID Connect (e.g. Elixir AAI).
-
app.oidc_types()[source]
List OpenID Connect types.
-
app.prepare()[source]
Open the database connection and get the current user.