Skip to content

Repository files navigation

OIDC Client - PHP

A PHP OpenID Connect Relying Party client for applications that need to authenticate users through an OpenID Provider using Authorization Code Flow.

It is built for practical OIDC integrations: provider discovery, JWKS key rotation, ID token validation, user claims extraction, userinfo fetching, PKCE, Pushed Authorization Requests, RP-Initiated and Back-Channel Logout, and cache-backed metadata/key handling are included.

What It Supports

  • Pre-registered OIDC clients with an existing client ID and secret
  • Federated clients using OpenID Federation automatic client registration
  • Dynamic Client Registration for providers that support it
  • Authorization Code Flow with state, nonce, PKCE, ID token validation, and user data fetching
  • JWKS discovery, public key rollover, and file-based caching by default
  • RP-Initiated and Back-Channel Logout

Installation

composer require cicnavi/oidc-client-php

Getting Started

Choose the setup that matches your OpenID Provider:

For prerequisites, examples, SameSite cookie notes, and testing instructions, see the full documentation.

About

OIDC client written in PHP

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages