PHPackages                             rahife/socialite-adfs-provider - 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. rahife/socialite-adfs-provider

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

rahife/socialite-adfs-provider
==============================

Basic ADFS OAuth2 Provider for Laravel Socialite

v1.0.0(1y ago)0588MITPHP

Since Jan 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rahife/socialite-adfs-provider)[ Packagist](https://packagist.org/packages/rahife/socialite-adfs-provider)[ RSS](/packages/rahife-socialite-adfs-provider/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Laravel Socialite Adfs Provider
===============================

[](#laravel-socialite-adfs-provider)

Basic ADFS OAuth2 Provider for [Laravel Socialite](https://laravel.com/docs/8.x/socialite)

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

[](#installation)

```
composer require rahife/socialite-adfs-provider
```

Configuration
-------------

[](#configuration)

Add the following configuration to the `config/services.php` file:

```
'Adfs' => [
  'client_id' => env('ADFS_CLIENT_ID'), // Sample: 78d90125-a243-416a-b8b5-c2c7574e9e85
  'client_secret' => env('ADFS_CLIENT_SECRET'), // Sample: IGlnE3M5XFoWCPb/lXBUtSA2X5z3M6lbMSax13UH8HU=
  'redirect' => env('ADFS_REDIRECT'), // Sample: https://your-application.example.com/sso/callback
  'adfs_server' => env('ADFS_SERVER'),   // Sample: https://my-idp.example.com
],
```

Usage
-----

[](#usage)

Define the redirect and callback routes for Socialite interaction. Sample:

```
Route::get('/sso/redirect', function () {
    return Socialite::driver('Adfs')->redirect();
});

Route::get('/sso/callback', function () {
    $user = Socialite::driver('Adfs')->user();

    // Available User fields
    // $user->nickname
    // $user->name
    // $user->email

    // Your custom logic ...

});
```

For further information about this, go to the offical documentation of [Laravel Socialite](https://laravel.com/docs/8.x/socialite#routing).

Provided values
---------------

[](#provided-values)

This provider returns the following fields:

- `email`
- `name` (optional)
- `nickname` (optional)

Your ADFS server must return at least the `email` attribute in order to use this provider. If desired (and recommended), you should configure your ADFS server to provide a `nickname` (=&gt; usually the sAMAccountName) and `name` (=&gt; usually the displayName) attribute as well.

Feedback / Support / Security
-----------------------------

[](#feedback--support--security)

Please reach out to me at  for feedback or if you'll need support.

If you find security-related issues, please do not use the issue tracker instead, contact me via email.

License
-------

[](#license)

The contents of this repository is released under the [MIT license](LICENSE).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance41

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

497d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8112668?v=4)[rahife](/maintainers/rahife)[@rahife](https://github.com/rahife)

---

Top Contributors

[![rahife](https://avatars.githubusercontent.com/u/8112668?v=4)](https://github.com/rahife "rahife (1 commits)")

---

Tags

laravelSSOoauthoauth2single sign onlaravel socialiteadfsMicrosoft Active Directory Federation Services

### Embed Badge

![Health badge](/badges/rahife-socialite-adfs-provider/health.svg)

```
[![Health](https://phpackages.com/badges/rahife-socialite-adfs-provider/health.svg)](https://phpackages.com/packages/rahife-socialite-adfs-provider)
```

###  Alternatives

[league/oauth2-client

OAuth 2.0 Client Library

3.8k118.6M1.2k](/packages/league-oauth2-client)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[adam-paterson/oauth2-stripe

Stripe OAuth 2.0 Client Provider for The PHP League OAuth2-Client

172.4M4](/packages/adam-paterson-oauth2-stripe)[brenoroosevelt/oauth2-govbr

Cliente OAuth2 para Gov.br

2011.0k](/packages/brenoroosevelt-oauth2-govbr)[laravel-uis/socialite-ui

A Laravel Socialite UI for the new Laravel Starter Kits

114.3k1](/packages/laravel-uis-socialite-ui)

PHPackages © 2026

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