Developer example

PHP sample for standards-based OIDC web login

Use the PHP sample when you need a straightforward, standards-based web login integration without committing to a full framework from day one.

PHP Server-side web app / session-based login
Best for
  • PHP teams that want a direct, readable OIDC integration pattern.
  • Operational portals, member tools, and small web systems that run on server-side sessions.
  • Projects that want to start lean while keeping room for a broader identity model later.
What this sample shows
  • The essential login, callback, and logout path in a plain PHP setup.
  • How to keep the integration standard without adding custom protocol code.
  • A stable base before product-specific roles, permissions, or managed identity features are added.
Integration model

Keep the PHP login flow simple and standards-based

This sample is useful when you want the shortest path to a proper OIDC web integration in PHP. It gives you a conservative server-side baseline and leaves richer identity modelling to the product layer, where it belongs.

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

Stack
PHP
Pattern
Server-side web app / session-based login
Source code auth_samples_php