PHPackages                             muhammadbaiquni/passport - 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. muhammadbaiquni/passport

ActiveFlarum-extension[Authentication &amp; Authorization](/categories/authentication)

muhammadbaiquni/passport
========================

Fork of fof/Passport to OAuth2 with client\_secret\_basic

0.6.0(5y ago)03MITPHP

Since Mar 17Pushed 4y agoCompare

[ Source](https://github.com/muhammadbaiquni/passport)[ Packagist](https://packagist.org/packages/muhammadbaiquni/passport)[ Docs](https://friendsofflarum.org)[ Fund](https://opencollective.com/fof/donate)[ RSS](/packages/muhammadbaiquni-passport/feed)WikiDiscussions master Synced today

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

Passport by FriendsOfFlarum
===========================

[](#passport-by-friendsofflarum)

[![MIT license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/FriendsOrFlarum/passport/blob/master/LICENSE.md) [![Latest Stable Version](https://camo.githubusercontent.com/0dc2657222b80208c352ff3909a95d5b7f00631fded79b1869c997d6d6d7bd05/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666f662f70617373706f72742e737667)](https://packagist.org/packages/fof/passport) [![Total Downloads](https://camo.githubusercontent.com/1916953c4ab802190fc174a97e731bfb5c5ba717b17f428bf402d62767da81d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666f662f70617373706f72742e737667)](https://packagist.org/packages/fof/passport)

The [Laravel Passport](https://laravel.com/docs/passport) compatible oauth extension.

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

[](#installation)

```
composer require fof/passport
```

Updating from Flagrow
---------------------

[](#updating-from-flagrow)

This extension replaces [Flagrow Passport](https://packagist.org/packages/flagrow/passport).

To upgrade from the old extension to the new one:

- **Backup your data!**
- Disable the Passport extension in the admin panel.
- Run:

```
composer require fof/passport
```

Composer should let you know that `flagrow/passport` has been automatically removed.

- Enable the new extension in the admin panel.
- Your existing settings will be migrated to FoF Passport automatically.
- You should be good to go! All URLs stay the same.

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

[](#configuration)

In the extension settings, you have to fill the following data:

SettingExampleDescriptionOAuth authorization url`https://example.com/oauth/authorize``/oauth/authorize`OAuth token url`https://example.com/oauth/token``/oauth/token`Api URL providing user details when authenticated`https://example.com/api/user`Default Laravel installs have an `/api/user` route, otherwise point to a route returning the current user data (protected by the `passport` driver)OAuth application id`1`The integer *Client ID* you've made in the Laravel app or via `artisan passport:client`OAuth application secret`abcdefghijABCDEFGHIJabcdefghijABCDEFGHIJ`The *Client secret* provided by Laravel once you created the OAuth clientOAuth scopes to requestOptional additional scopes to request during authorization, perhaps you want to protect the user url with a scope or add additional functionalityLabel for login buttonLogin with ExampleLabel to place on the login buttonIcon for login button`far fa-id-card`FontAwesome icon to place on the login button. [List of available icons](https://fontawesome.com/icons?m=free)**Hint:** When creating the OAuth client in your Laravel app, don't forget to set the `redirect` value to `/auth/passport` or you might encounter `invalid_client` errors.

Links
-----

[](#links)

- [Flarum Discuss post](https://discuss.flarum.org/d/5203)
- [Source code on GitHub](https://github.com/FriendsOfFlarum/passport)
- [Report an issue](https://github.com/FriendsOfFlarum/passport/issues)
- [Download via Packagist](https://packagist.org/packages/fof/passport)

An extension by [FriendsOfFlarum](https://github.com/FriendsOfFlarum)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~213 days

Recently: every ~41 days

Total

8

Last Release

1846d ago

### Community

Maintainers

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

---

Top Contributors

[![luceos](https://avatars.githubusercontent.com/u/504687?v=4)](https://github.com/luceos "luceos (14 commits)")[![clarkwinkelmann](https://avatars.githubusercontent.com/u/5264300?v=4)](https://github.com/clarkwinkelmann "clarkwinkelmann (11 commits)")[![muhammadbaiquni](https://avatars.githubusercontent.com/u/29331467?v=4)](https://github.com/muhammadbaiquni "muhammadbaiquni (5 commits)")[![imorland](https://avatars.githubusercontent.com/u/16573496?v=4)](https://github.com/imorland "imorland (2 commits)")[![flarum-bot](https://avatars.githubusercontent.com/u/39334649?v=4)](https://github.com/flarum-bot "flarum-bot (2 commits)")[![karaok491](https://avatars.githubusercontent.com/u/72854852?v=4)](https://github.com/karaok491 "karaok491 (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![davwheat](https://avatars.githubusercontent.com/u/7406822?v=4)](https://github.com/davwheat "davwheat (1 commits)")[![vlntsolo](https://avatars.githubusercontent.com/u/25847225?v=4)](https://github.com/vlntsolo "vlntsolo (1 commits)")

---

Tags

leagueoauthoauth2passportflarum

### Embed Badge

![Health badge](/badges/muhammadbaiquni-passport/health.svg)

```
[![Health](https://phpackages.com/badges/muhammadbaiquni-passport/health.svg)](https://phpackages.com/packages/muhammadbaiquni-passport)
```

###  Alternatives

[fof/passport

The OAuth2 (and Laravel passport) compatible oauth extension

3013.3k](/packages/fof-passport)[thenetworg/oauth2-azure

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

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

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

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[wearedevtical/novassport

A Laravel Nova tool to manage API Authentication (Passport).

663.1k](/packages/wearedevtical-novassport)[chervand/yii2-oauth2-server

OAuth 2.0 server for Yii 2.0 with MAC tokens support.

1524.2k1](/packages/chervand-yii2-oauth2-server)

PHPackages © 2026

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