PHPackages                             glutio/domainsso - 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. glutio/domainsso

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

glutio/domainsso
================

Flarum SSO using domain scoped cookies.

0.0.1(2y ago)0511MITPHP

Since Mar 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/glutio/flarum.domainsso)[ Packagist](https://packagist.org/packages/glutio/domainsso)[ Docs](https://github.com/glutio/flarum.domainsso)[ RSS](/packages/glutio-domainsso/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Delegate Flarum login, logout and session validation to an SSO endpoint on the same domain by forwarding the domain-scoped cookies. Main scenario is to share login session between main site and forum site.

Example:

1. SSO url is `https://example.com` and has login endpoint `/api/auth/signin`, logout endpoint `/api/auth/signout` and session endpoint `/api/auth/session`.
2. Flarum url is `https://flarum.example.com` with DomainSSO extension enabled.
3. The user clicks `Log In` on the Flarum site and is redirected to `https://example.com/api/auth/signin` where they log in and a domain-scoped token cookie is generated.
4. The user is redirected back to Flarum at `https://flarum.example.com` and the domain-scoped cookie is forwarded to `https://example.com/api/auth/session`.
5. If based on the domain-scoped cookie the session is validated (returning session JSON) Flarum logs in the user based on the user's email address (the user is created in Flarum's database on first login).
6. The user clicks `Log Out` on the Flarum site and is logged out of Flarum and is redirected to `https://example.com/api/auth/signout` where the domain-scoped session is terminated.

#### Double-clicking `Log In` on the Flarum site pops up a login dialog for local Flarum admin to login to setup or fix the extension's settings.

[](#double-clicking-log-in-on-the-flarum-site-pops-up-a-login-dialog-for-local-flarum-admin-to-login-to-setup-or-fix-the-extensions-settings)

Install using `composer require glutio/domainsso:*`.

Initially the the extension is implemented to work with NextAuth.js and expects the session JSON to have a user property:

```
{
    "user": {
        "name": "John Doe",
        "email": "john.doe@example.com",
        "image": "https://example.com/image.jpg"
    }
}

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity31

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

776d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/210a57264ee54714d59bb6043a84472c35689a053dceb5c2e3ad903dcaac8f29?d=identicon)[glutio](/maintainers/glutio)

---

Top Contributors

[![glutio](https://avatars.githubusercontent.com/u/22550674?v=4)](https://github.com/glutio "glutio (26 commits)")

---

Tags

SSOflarum

### Embed Badge

![Health badge](/badges/glutio-domainsso/health.svg)

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

###  Alternatives

[league/oauth2-client

OAuth 2.0 Client Library

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

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[onelogin/php-saml

PHP SAML Toolkit

1.3k44.0M106](/packages/onelogin-php-saml)[maicol07/flarum-ext-sso

SSO for Flarum

468.3k](/packages/maicol07-flarum-ext-sso)

PHPackages © 2026

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