এই সাইট দিয়ে সাইন-ইন
অন্য সাইট ও অ্যাপ আপনার সাইটের অ্যাকাউন্ট দিয়ে লগইন দেয়: PKCE সহ OAuth 2.0 আর OpenID Connect, অ্যাপ হাতে বা নিজে নিজে রেজিস্টার হয়।
This plugin lets other sites and apps offer "Login with <your site>" - MyMeetBook, a forum, an app of your own, another AIO Video or AIO Downloader site. It speaks standard OAuth 2.0 with PKCE and has an OpenID Connect discovery document and userinfo endpoint, so any library that knows "Login with Google" can talk to it.
Switching it on
The plugin is free and works with every licence. Switch it on at Admin → Plugins (the card says Sign in with this
site). Its page is Connected apps under Plugins (admin/plugin.php?code=oauth-server). The addresses an app needs
are listed there:
| Address | What it is |
|---|---|
/.well-known/openid-configuration | Discovery: every address below, in one document. |
/oauth/authorize | Where the member is sent to sign in and allow the app. |
/oauth/token | Where the app swaps the code for a token. |
/oauth/userinfo | Who the member is: id, name, username, picture, e-mail and whether it is confirmed. |
/oauth/register | Where another site registers itself (while that is allowed). |
Apps that register themselves
Since 1.1.0 another site needs nothing but your address. With Let any site register itself on (the default), an AIO Video site with Sign in with another site, an AIO Downloader or MyMeetBook site, or any program that follows RFC 7591, registers itself and gets its own client id and secret. Such an app:
- must use PKCE on every sign-in;
- must return members to one host, over https (plain http only for
localhost); - is shown to the member with a note on the consent card: this site added itself; you will be sent back to <host>; allow only if that is the site you came from;
- is listed under Connected apps with "registered itself from <address>", where you can switch it off, give it a new secret, disconnect every member or delete it.
One address may register 10 apps an hour, and one site 20 apps in all. Switch Let any site register itself off and the register address answers "not allowed"; discovery no longer names it, and every app is registered by hand again.
Apps registered by hand
Under Register an app give its name, its site, its logo and the return addresses it uses, letter for letter. Tick Public client for a phone or desktop app that cannot keep a secret (it must use PKCE). Copy the client id and secret to the app; the secret is shown once - New secret makes another.
What members see
The first time, a card: <app> wants to know who you are, with the member's name and Allow or Cancel. The answer is remembered for that app. Members see the apps they allowed under Settings → Connected apps and can take an app's access away at any time.
Honest limits
- There are no refresh tokens and no id_token: an app signs the member in again when its token runs out and reads userinfo for the details.
- An app that registered itself cannot change or delete its own registration (RFC 7592 is not offered); you do that under Connected apps.