Developer example

Python sample for server-side OIDC integration

Use the Python sample when you want a clear, server-side web integration with standard OIDC and a codebase your team can adapt without protocol guesswork.

Python + Flask + Authlib Server-side web app / confidential client
Best for
  • Python teams building internal tools, member administration, or organization-facing web apps.
  • Projects that want session handling on the server instead of pushing everything into the browser.
  • Products that need a clean identity baseline before adding permissions or delegated operational flows.
What this sample shows
  • OIDC client registration and server-side session setup in Flask.
  • Login, callback, and logout handling with Authlib.
  • A realistic starting point for operational software where auth should stay understandable.
Integration model

Use server-side Python when you want protocol clarity and session control

The Python sample takes the direct route: standard OIDC, server-managed sessions, and readable web application code. That is often a better fit for organization software than a browser-only pattern when the product may later need richer access or people models.

These pages explain the sample on Tuurio's domain. GitHub remains the code host.

Stack
Python + Flask + Authlib
Pattern
Server-side web app / confidential client
Source code auth_samples_python