svgta/oidc-client-php

OpenId Connect Client for PHP

v1.1.1 2024-02-01 11:47 UTC

This package is auto-updated.

Last update: 2024-05-30 12:32:54 UTC


README

[TOC]

OpenId Connect Client for PHP

A library that allows appllications to authentificate a user through the OpenId Connect flow.

Requirements

  • PHP 8.1 or greater
  • curl extension
  • mb extension
  • json extension
  • openssl

Supported

Authentication

  • pkce
  • client_secret_basic
  • client_secret_post
  • client_secret_jwt
  • private_key_jwt
  • client credential
  • password grant
  • JWE Encryption
  • Nested JWT (JWS encrypted in a JWE)

Claims request

  • Scope
  • Request parameter
  • JWS, JWE, Nested JWT request parameter

id_token

  • Signed JWT (JWS)
  • Nested JWT (JWS encrypted in a JWE)

UserInfo

  • Json
  • Signed JWT (JWS)
  • Encrypted Json
  • Nested JWT (JWS encrypted in a JWE)

Tokens

  • Refresh
  • Revoke
  • Introspect

Logout

  • Front-channel logout
  • Back-channel logout

Dynamic Registration

  • Registration
  • Update
  • Delete

How to install

Composer is the best way to install the library with all its dependencies.

composer require svgta/oidc-client-php

In your PHP script, include composer autoload. Example :

require dirname(__FILE__, 2) . '/vendor/autoload.php';

How to use

The documentation is here