Hoppa till innehåll
WordPress.org

Svenska

  • Teman
  • Tillägg
  • Nytt
  • Support
  • Om…
  • Mönster
  • Engagera dig!
  • Skaffa WordPress
Skaffa WordPress
WordPress.org

Plugin Directory

OAuth2 Account Login

  • Skicka in ett tillägg
  • Mina favoriter
  • Logga in
  • Skicka in ett tillägg
  • Mina favoriter
  • Logga in

OAuth2 Account Login

Av Digitaldive
Ladda ner
  • Detaljer
  • Recensioner
  • Installation
  • Utveckling
Support

Beskrivning

WP OAuth2 adds ”Login with WordPress.com” (OAuth2) to your WordPress login screen and a connect/disconnect widget on user profile pages. It’s designed for agencies and teams managing multiple sites who want a consistent WordPress.com login without installing Jetpack.

External Service: WordPress.com OAuth2 API
– Service purpose: Authenticate users with their WordPress.com accounts.
– Data sent: Client ID, redirect URI, OAuth authorization code, and standard HTTP request metadata during the OAuth flow.
– Data received: WordPress.com user ID, email, and display name to link or create WordPress users.
– Service terms: https://wordpress.com/tos/
– Privacy policy: https://automattic.com/privacy/

Features:

  • WordPress.com login (OAuth2 ”auth” scope).
  • Link or unlink WordPress users to WordPress.com accounts.
  • Auto-create users when no matching email exists (optional).
  • Allowlist by email domain or WordPress.com user ID (optional).
  • Audit log of the last 20 OAuth attempts (optional).
  • Stores only WordPress.com user ID in user meta (no access tokens stored).
  • Short-lived OAuth state with HttpOnly cookie + transient for CSRF protection.

Setup requires creating a WordPress.com application and adding the redirect URI shown in the plugin settings. Feature toggles let you enable or disable the login button, profile widget, auto-create users, admin notices, allowlists, and the audit log.

Privacy

This plugin connects to WordPress.com to authenticate users. It stores the WordPress.com user ID in WordPress user meta to link accounts. OAuth access tokens are used during the login flow and are not stored. A short-lived HttpOnly cookie and transient are used for OAuth state validation and expire automatically. If the audit log is enabled, the last 20 OAuth attempts are stored (time, status, IP address, and basic details) in a non-autoloaded option. WordPress.com service terms: https://wordpress.com/tos/ and privacy policy: https://automattic.com/privacy/.

Installation

  1. Upload the plugin folder to /wp-content/plugins/ or install via the WordPress plugin uploader.
  2. Activate the plugin through the Plugins menu.
  3. Go to WP OAuth2 in the WordPress admin menu and enter your WordPress.com App Client ID and Client Secret.
  4. Copy the Redirect URI shown on the settings page into your WordPress.com app configuration.
  5. Use the login button on the WordPress login screen or link accounts from profile screens.

Vanliga frågor

Do I need Jetpack?

No. This plugin uses WordPress.com OAuth2 directly and does not require Jetpack.

What permissions are requested?

The OAuth request uses the WordPress.com ”auth” scope to authenticate the user.

What data is stored?

The plugin stores the WordPress.com user ID in user meta to link accounts. It does not store OAuth access tokens. A short-lived state cookie and transient are used during the OAuth flow and expire automatically.

How do allowlists work?

You can restrict login to specific email domains and/or WordPress.com user IDs from the settings page. When enabled, an empty list blocks all logins.

What does the audit log store?

When enabled, the plugin stores the last 20 OAuth attempts (time, status, and basic details) in a non-autoloaded option for debugging.

Can it auto-create users?

Yes. If a WordPress.com user has no linked account and no matching email, a new user is created.

Recensioner

Detta tillägg har inga recensioner.

Bidragsgivare och utvecklare

”OAuth2 Account Login” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.

Bidragande personer
  • Digitaldive

Översätt ”OAuth2 Account Login” till ditt språk.

Intresserad av programutveckling?

Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.

Ändringslogg

1.0.0

  • Initial release with WordPress.com OAuth2 login, account linking, feature toggles, allowlists, and audit log.

Meta

  • Version 1.0.1
  • Senast uppdaterat 2 månader sedan
  • Aktiva installationer Färre än 10
  • WordPress-version 5.2 eller senare
  • Testat upp till 6.9.4
  • PHP-version 7.0 eller senare
  • Språk
    English (US)
  • Etiketter
    loginoauth2ssouser managementWordPress.com
  • Avancerad vy

Betyg

Än så länge har inga recensioner skickats in.

Your review

Se alla recensioner

Bidragande personer

  • Digitaldive

Support

Har du något att säga? Behöver du hjälp?

Visa supportforum

Donera

Skulle du vilja bidra till utvecklingen av detta tillägg?

Donera till det här tillägget

  • Om
  • Nyheter
  • Webbhotell (hosting)
  • Integritet
  • Showcase
  • Teman
  • Tillägg
  • Mönster
  • Lär dig
  • Support
  • Utvecklare
  • WordPress.tv ↗
  • Engagera dig
  • Evenemang
  • Donera ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Svenska

  • Besök vår X-konto (f.d. Twitter)
  • Besök vårt Bluesky-konto
  • Besök vårt Mastodon-konto
  • Besök vårt Thread-konto
  • Besök vår Facebook-sida
  • Besök vårt Instagram-konto
  • Besök vårt LinkedIn-konto
  • Besök vårt TikTok-konto
  • Besök vår YouTube-kanal
  • Besök vårt Tumblr-konto
Kod är poesi.
The WordPress® trademark is the intellectual property of the WordPress Foundation.