Search by

tacraft-sociality / flarum-microsoft-oauth

TaCraft-Sociality

Log in to your Flarum forum with Microsoft

Package info

github.com/TaCraft-Sociality/flarum-microsoft-oauth

Type:flarum-extension

pkg:composer/tacraft-sociality/flarum-microsoft-oauth

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-11-02 07:04 UTC

This package is auto-updated.

Last update: 2026-11-02 07:32:02 UTC


README

用微软账号登录 Flarum 2 论坛。

玩家点击登录页的「微软登录」按钮,完成微软授权后自动创建或进入论坛账号,不需要另外填写邮箱和密码。

需要先安装 OAuth Core。

安装

  1. 把 flarum-microsoft-oauth 目录放到论坛的 packages(或你放插件的目录)下。
  2. 在 composer.json 的 repositories 里确认已经配置了该目录的 path 仓库,然后执行:
composer require tacraft-sociality/flarum-microsoft-oauth:*
  1. 登录后台,在「扩展」里启用 Log In with Microsoft,并填写 Azure 应用的 Client ID、Client Secret 与 Tenant。
  2. 在 Azure 应用注册里把回调地址设置为:
https://你的论坛域名/microsoft-oauth/callback
  1. 执行:
php flarum cache:clear

更新

覆盖插件目录后执行:

composer update tacraft-sociality/flarum-microsoft-oauth
php flarum cache:clear

前端有改动时还需要在插件目录的 js/ 下重新构建:

npm ci
npm run build

依赖

许可

MIT