PHPackages                             marcorombach/laravel-aaf-oidc - 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. marcorombach/laravel-aaf-oidc

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

marcorombach/laravel-aaf-oidc
=============================

OpenID Connect Module for Laravel and AAF IdP

1.3.1(3mo ago)1237MITPHPPHP &gt;=7.4

Since Feb 14Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/marcorombach/laravel-aaf-oidc)[ Packagist](https://packagist.org/packages/marcorombach/laravel-aaf-oidc)[ Docs](https://github.com/marcorombach/laravel-aaf-oidc)[ RSS](/packages/marcorombach-laravel-aaf-oidc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (3)Versions (10)Used By (0)

laravel-aaf-oidc
================

[](#laravel-aaf-oidc)

This Laravel Package provides a simple way to authenticate with OpenID Connect. Minimum requirement is a User Model/Table which has either a field 'username' or a field 'email'. It's recommended to define a post login route and a error route. The error route is called with a flashed session variable (session('error')) containing information to display.

To configure this package with NetIQ Advanced Authentication, a Event must be created. The ClientID and Client Secret you get there must be entered in the corresponding field in the configuration file of this package. The provider\_url in the config hast to be set like this: `https:///osp/a//auth/oauth2`All needed Endpoints will be automatically retrieved from `https:///osp/a//auth/oauth2/.well-known/openid-configuration`

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

[](#installation)

Install the package via composer:

```
composer require marcorombach/laravel-aaf-oidc
```

You can publish the config file with:

```
php artisan vendor:publish --tag="aaf-oidc-config"
```

This is the contents of the published config file:

```
return [
    'provider_url' => '', //issuer URL of the auth provider -> https:///osp/a//auth/oauth2
    'client_secret' => '', //Client secret
    'client_id' => '', //Client ID
    'post-login-route' => '', //Route to redirect to after login - if not set you will be redirected to the base URL
    'error-route' => '', //Route to redirect to on login error - redirects with $error variable set
];
```

Usage
-----

[](#usage)

```
$laravelAafOIDC = new Marcorombach\LaravelAafOIDC();
$authenticatable = $laravelAafOIDC->authenticate();
```

The **redirect URI** is your applications **base URI + /oidc-callback** - this has to be set in the AAF Event

It's not necessary to use the class directly. Laravel-AAF-SAML provides a route which starts the authentication process.

```
/oidc-login

```

**Please note**: your application needs to use HTTPS, as it's a requirement of the NetIQ Advanced Authentication Framework.

Requirements
------------

[](#requirements)

- PHP 7.4 or greater
- Laravel 8.0 or greater

Credits
-------

[](#credits)

- [jumbojett - OpenID-Connect-PHP](https://github.com/jumbojett/OpenID-Connect-PHP)
- [Marco Rombach](https://github.com/marcorombach)

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance82

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.5% 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 ~136 days

Recently: every ~147 days

Total

9

Last Release

96d ago

### Community

Maintainers

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

---

Top Contributors

[![marcorombach-sauter](https://avatars.githubusercontent.com/u/188306274?v=4)](https://github.com/marcorombach-sauter "marcorombach-sauter (20 commits)")[![marcorombach](https://avatars.githubusercontent.com/u/36333308?v=4)](https://github.com/marcorombach "marcorombach (11 commits)")

---

Tags

laravelmarcorombachlaravel-aaf-oidc

### Embed Badge

![Health badge](/badges/marcorombach-laravel-aaf-oidc/health.svg)

```
[![Health](https://phpackages.com/badges/marcorombach-laravel-aaf-oidc/health.svg)](https://phpackages.com/packages/marcorombach-laravel-aaf-oidc)
```

###  Alternatives

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[spatie/laravel-login-link

Quickly login to your local environment

4381.2M1](/packages/spatie-laravel-login-link)[ryangjchandler/laravel-cloudflare-turnstile

A simple package to help integrate Cloudflare Turnstile.

438896.6k2](/packages/ryangjchandler-laravel-cloudflare-turnstile)[headerx/laravel-jetstream-passport

Passport and OAuth2 support for laravel's jetstream starter kit (Livewire)

3016.4k1](/packages/headerx-laravel-jetstream-passport)

PHPackages © 2026

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