PHPackages                             frie/flarum-nextcloud-oauth - 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. frie/flarum-nextcloud-oauth

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

frie/flarum-nextcloud-oauth
===========================

Allow users to log in with Nextcloud!

0.2(4y ago)1227MITPHP

Since Aug 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/frie/flarum-nextcloud-oauth)[ Packagist](https://packagist.org/packages/frie/flarum-nextcloud-oauth)[ Docs](https://github.com/frie/flarum-nextcloud-oauth)[ RSS](/packages/frie-flarum-nextcloud-oauth/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

OAuth for Nextcloud
===================

[](#oauth-for-nextcloud)

A supplement to the OAuth extenstion fof/oauth by FriendsOfFlarum
-----------------------------------------------------------------

[](#a-supplement-to-the-oauth-extenstion-fofoauth-by-friendsofflarum)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)

A [Flarum](http://flarum.org) extension supplementing `fof/oauth` (OAUth for Flarum by FriendsOfFlarum) with a lean implementation for community owned Nextcloud instances.

### Installation

[](#installation)

```
composer require frie/flarum-nextcloud-oauth
```

### Updating

[](#updating)

```
composer update frie/flarum-nextcloud-oauth
```

### Configuration

[](#configuration)

Before activating this extension, `fof/oauth` also needs to be activated.

The Nextcloud provider is configured in the scope of `fof/oauth`

#### Configuration for Nextcloud

[](#configuration-for-nextcloud)

Nextcloud authentication is somewhat different from authentication against Github, Twitter etc.: we usually have community-owned Nextcloud instances, which we supplement by a commmunity-owned discussion forum. So it makes sense to enable enforcement of identical user names and nicknames (by configuration).

Therefore a switch was added *Copy user name from Nextcloud* (activate by entering **yes** in the input field). Without activating this switch the user has to define the user name on registration as usual - when activated the username is copied from Nextcloud. Since there is no Nextcloud icon yet in the awesome brand collection, the icon can be set by another input field.

#### Translation

[](#translation)

A german translation was added to the original.

### Links

[](#links)

- Base extension: [GitHub](https://github.com/FriendsOfFlarum/oauth)

### Nextcloud integration

[](#nextcloud-integration)

For a close integration it makes sense to configure Flarum as an *external site* in Nextcloud. To make this work (running Flarum in an iframe of Nextcloud) the following setting in the config.php of Flarum file may be required:

```
  'cookie' => [
    'samesite' => 'none', // `strict` / `none`, defaults to `lax`
  ],
```

#### Issues

[](#issues)

If you want to have Nextcloud as exclusive login option, you can disable the *regular* login by CSS configuration. The html code will still be there and be accessible to anybody. Same holds for registration - you cannot disallow registration, because the oauth extension makes use of this process. So to exclude "foreign" visitors, you cann make use of the doorkeeper extension and communicate an **Invite Code** to your community to keep control on who is allowed to join.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Total

2

Last Release

1746d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1709279?v=4)[Friedrich Kammer](/maintainers/frie)[@frie](https://github.com/frie)

---

Top Contributors

[![frie](https://avatars.githubusercontent.com/u/1709279?v=4)](https://github.com/frie "frie (3 commits)")

---

Tags

oauthflarumnextcloud

### Embed Badge

![Health badge](/badges/frie-flarum-nextcloud-oauth/health.svg)

```
[![Health](https://phpackages.com/badges/frie-flarum-nextcloud-oauth/health.svg)](https://phpackages.com/packages/frie-flarum-nextcloud-oauth)
```

###  Alternatives

[fof/oauth

Allow users to log in with GitHub, Facebook, Google, Discord, GitLab, LinkedIn, and more!

50118.7k41](/packages/fof-oauth)[fof/passport

The OAuth2 (and Laravel passport) compatible oauth extension

3013.3k](/packages/fof-passport)

PHPackages © 2026

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