PHPackages                             businessprocess/oidc-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. businessprocess/oidc-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

businessprocess/oidc-auth
=========================

Package for JWT token auth

v1.0.7(1y ago)04.5k↓33.3%2MITPHPPHP ^8.0

Since Nov 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/businessprocess/oidc-auth)[ Packagist](https://packagist.org/packages/businessprocess/oidc-auth)[ RSS](/packages/businessprocess-oidc-auth/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (18)Used By (2)

oidc-auth
=========

[](#oidc-auth)

JWT token auth service

[![PHP 8.x](https://camo.githubusercontent.com/29e76b25f44fd19ba3a88f85f00b3ac7329ffd604075db0fbbeda87f6c794491/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e302d626c7565)](https://camo.githubusercontent.com/29e76b25f44fd19ba3a88f85f00b3ac7329ffd604075db0fbbeda87f6c794491/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e302d626c7565)[![Laravel 8.x](https://camo.githubusercontent.com/3c7441bb2ae21c31ca18ffa084e2fb51a956727722dbd18b850336439becc367/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d382e782d6f72616e67652e737667)](http://laravel.com)[![Yii 2.x](https://camo.githubusercontent.com/ff8999e0e5a1e46689cc5a19d1d0f07ffafaa842838a983a2c4469458a1defa8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5969692d322e782d6f72616e6765)](https://www.yiiframework.com/doc/guide/2.0/ru)[![Latest Stable Version](https://camo.githubusercontent.com/b599befe4d9be596f3e46eb347317b2361bb188921dde4bf894af0fb496f31e8/68747470733a2f2f706f7365722e707567782e6f72672f627573696e65737370726f636573732f6f6964632d617574682f762f737461626c65)](https://camo.githubusercontent.com/b599befe4d9be596f3e46eb347317b2361bb188921dde4bf894af0fb496f31e8/68747470733a2f2f706f7365722e707567782e6f72672f627573696e65737370726f636573732f6f6964632d617574682f762f737461626c65)[![Release date](https://camo.githubusercontent.com/f069acd7953e67539ee61c375d6e651bc68e4601ebb0f7917a97bed72af2af41/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f627573696e65737370726f636573732f6f6964632d61757468)](https://camo.githubusercontent.com/f069acd7953e67539ee61c375d6e651bc68e4601ebb0f7917a97bed72af2af41/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f627573696e65737370726f636573732f6f6964632d61757468)[![Release Version](https://camo.githubusercontent.com/fdf8e514b0a4d8a5565dd4e8eaa90db9a573977368ceeaac4d04969490436562/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f627573696e65737370726f636573732f6f6964632d61757468)](https://camo.githubusercontent.com/fdf8e514b0a4d8a5565dd4e8eaa90db9a573977368ceeaac4d04969490436562/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f627573696e65737370726f636573732f6f6964632d61757468)[![Total Downloads](https://camo.githubusercontent.com/71dacba60ea8cf341cbb75b61d09da417a181dcf109a94a51173c0742e85e320/68747470733a2f2f706f7365722e707567782e6f72672f627573696e65737370726f636573732f6f6964632d617574682f646f776e6c6f616473)](https://camo.githubusercontent.com/71dacba60ea8cf341cbb75b61d09da417a181dcf109a94a51173c0742e85e320/68747470733a2f2f706f7365722e707567782e6f72672f627573696e65737370726f636573732f6f6964632d617574682f646f776e6c6f616473)[![Pull requests](https://camo.githubusercontent.com/4dfd0d74c828cfe607654a3c62ae0ad1c9fb15dda1f360e80bed545ea8478f82/68747470733a2f2f696d672e736869656c64732e696f2f6269746275636b65742f70722f627573696e65737370726f636573732f6f6964632d61757468)](https://camo.githubusercontent.com/4dfd0d74c828cfe607654a3c62ae0ad1c9fb15dda1f360e80bed545ea8478f82/68747470733a2f2f696d672e736869656c64732e696f2f6269746275636b65742f70722f627573696e65737370726f636573732f6f6964632d61757468)[![Software License](https://camo.githubusercontent.com/f5d9171601aa82ad4427c0d2e7e9a3b979561286eb661103a8c7bfad3830b084/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d706c61737469632d737175617265)](LICENSE)[![Stars](https://camo.githubusercontent.com/eec9e0089f23c32cbee0c2749577c936efe198d9c8dbfb25cfc3053a605e5b1a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f627573696e65737370726f636573732f6f6964632d617574683f7374796c653d736f6369616c)](https://camo.githubusercontent.com/eec9e0089f23c32cbee0c2749577c936efe198d9c8dbfb25cfc3053a605e5b1a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f627573696e65737370726f636573732f6f6964632d617574683f7374796c653d736f6369616c)

Notification messenger channel to Laravel FrameWork v6.0 and above.

Installation
------------

[](#installation)

The recommended way to install package is through [Composer](http://getcomposer.org).

```
composer require businessprocess/oidc-auth
```

Usage Laravel
-------------

[](#usage-laravel)

Use middleware 'auth:oidc'

```
\Illuminate\Support\Facades\Route::middleware(['auth:oidc'])->group(fn() => {

})
```

Configuration setting

Add to auth config file

```
//Guard
    [
        'driver' => 'oidc',
        'provider' => null, // if null return OidcUser model
        'decoder' => null, // Jwt token decoder (JwtDecoder), if null use service decoder
    ]
```

Configuration model

```
class User extends Authenticatable
{
    use \OidcAuth\HasJwtToken;
}
```

#### Available Methods

[](#available-methods)

MethodsDescriptionReturn valueserviceTokenGet service tokenstringtokenGet user tokenstringuserAuthorizeAuthorize user by credentialsOidcUserserviceAuthorizeAuthorize service by credentialsOidcUserreauthorizeReauthorize by refresh tokenOidcUsercheckValidate tokenPayload,boolshortGet service short tokenstringshortUserGet user short tokenstringtokenFromShortGet jwt token from short tokenstringuserFromShortGet jwt user from short tokenUserpublicKeyGet public keystringaliveCheck is node is alivebool

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~22 days

Recently: every ~75 days

Total

17

Last Release

537d ago

Major Versions

v0.0.9 → v1.0.02023-12-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab93683ae8a02b1e3c7db821e0d208177e93654d55fb0fc11820a52a25bc9953?d=identicon)[KAA87](/maintainers/KAA87)

---

Top Contributors

[![maveriksEcho](https://avatars.githubusercontent.com/u/40034131?v=4)](https://github.com/maveriksEcho "maveriksEcho (19 commits)")

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/businessprocess-oidc-auth/health.svg)

```
[![Health](https://phpackages.com/badges/businessprocess-oidc-auth/health.svg)](https://phpackages.com/packages/businessprocess-oidc-auth)
```

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

120220.7k1](/packages/ellaisys-aws-cognito)[clerkinc/backend-php

2755.0k](/packages/clerkinc-backend-php)[kinde-oss/kinde-auth-php

Kinde PHP SDK for authentication

2369.5k3](/packages/kinde-oss-kinde-auth-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
