Linux 软件免费装
Banner图

Integration with WorkOS

开发者 bordoni
更新时间 2026年5月13日 03:17
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

authentication sso identity workos directory-sync

下载

1.0.2 1.0.3 1.0.0 1.0.1

详情介绍:

Integration with WorkOS connects your WordPress site with WorkOS for enterprise-grade identity management. Requirements Custom AuthKit Authentication User & Organization Management Redirects Admin Tools Privacy & Security This plugin transmits user data (email, name) to WorkOS for authentication and directory sync. No data is sent until you configure API credentials and users authenticate. API keys are stored in the WordPress database or can be defined as constants in wp-config.php. See the "External services" section for full details on data transmitted.

安装:

  1. Go to Plugins > Add New in your WordPress admin and search for "Integration with WorkOS".
  2. Click Install Now, then Activate.
  3. Go to Settings > WorkOS and enter your API Key and Client ID from the WorkOS Dashboard.
  4. Configure your webhook endpoint in the WorkOS Dashboard using the URL shown on the settings page.
  5. (Optional) Run the Onboarding Wizard at Settings > WorkOS > Onboarding for guided setup.

屏幕截图:

  • Login Profiles editor — pick sign-in methods, pin an organization, set the MFA policy, customize the URL path, and brand the card with a logo and color, all without code.
  • WorkOS settings — switch between Production and Staging, manage API credentials and the webhook secret, and choose between Custom AuthKit and AuthKit Redirect login modes.
  • Role mapping and redirects — map WorkOS organization roles to WordPress roles, route users to role-specific URLs after login and logout, and choose what happens to deprovisioned users.

升级注意事项:

1.0.3 Fixes "The user must choose an organization to finish their authentication." for AuthKit logins and the /workos/callback flow. When a Login Profile has an organization pinned, the plugin completes the authenticate call via the organization-selection grant transparently, and auto-enrolls pre-existing WordPress users into the pinned WorkOS organization (matching emails only — strangers still get rejected). 1.0.2 Adds a WordPress-password fallback for the AuthKit password flow (with an optional email-confirmation step) so accounts that pre-date the WorkOS integration can keep logging in, and adds a wp-config.php constant seeder for all major settings. Also renames the auth REST nonce header from X-WP-Nonce to X-WorkOS-Nonce — external clients calling /wp-json/workos/v1/auth/* directly need to update the header name. 1.0.1 Adds a manual Refresh button next to the Organization dropdown, fixes a regression that prevented saving the Organization tab, and fixes the active-environment selector so picking "Production" actually loads production credentials instead of staging. 1.0.0 Initial stable release: WordPress-hosted Custom AuthKit (React login with Login Profiles, MFA, and passkeys), plus SSO, Directory Sync, role mapping, organization management, and full admin tooling.

常见问题:

Where do I get my API credentials?

Sign up at workos.com and find your API Key and Client ID in the dashboard.

Can users still log in with passwords?

Yes, if "Password Fallback" is enabled in settings. Users can access the standard login form via ?fallback=1.

How do I add a login button to my site?

Add the "WorkOS Login" Gutenberg block or use the "WorkOS Login" classic widget. Both render a styled login button that redirects to WorkOS AuthKit.

How do I show the new WordPress-hosted login (Custom AuthKit) on a page?

Use [workos:login profile="your-profile-slug"] or link to /workos/login/{profile}. Both mount the same React shell. The reserved default Login Profile automatically takes over wp-login.php.

Can different login pages offer different sign-in methods?

Yes. Each Login Profile (WorkOS → Login Profiles) picks its own set of enabled methods (password, magic code, any subset of social providers, passkey), pins an organization, and sets its own MFA policy and branding. Reference a profile by slug in the shortcode or URL.

Can I host a Login Profile at a custom URL like /members?

Yes. Edit any profile and tick Use a custom URL path, then fill in the path (e.g. members or team/login). The plugin registers an extra rewrite rule that mounts the same React shell at https://yoursite.com/members/. The canonical /workos/login/{slug} URL keeps working too. Reserved core paths (wp-admin, wp-includes, wp-content, wp-json, workos, feed, etc.) are blocked at save time. If you set a custom path on the default profile, /wp-login.php?action=login 302s to it for everyone (with all redirect_to / interim-login / language / nonce args preserved).

What happens if WorkOS is down?

Users can bypass the WorkOS redirect by appending ?fallback=1 to the login URL (e.g., wp-login.php?fallback=1). This loads the standard WordPress login form with native password authentication.

Can I require organization membership to log in?

Yes. The Entitlement Gate feature restricts login to users who belong to the configured WorkOS organization. Users without a membership are denied access with a customizable error message.

How do I sync existing WordPress users to WorkOS?

Use the Onboarding Wizard (Settings > WorkOS > Onboarding) for a guided walkthrough, or use the WP-CLI command wp workos sync push to bulk-push users to WorkOS.

Does this plugin support WordPress multisite?

Yes. Organizations can be mapped to specific sites in a multisite network, and the plugin stores organization-to-site mappings in a dedicated table.

How do I run diagnostics?

Go to Tools > WorkOS Diagnostics in the WordPress admin. The diagnostics page checks API connectivity, configuration completeness, database schema status, and other health indicators.

更新日志:

1.0.3 - 2026-05-12 1.0.2 - 2026-05-11 1.0.1 - 2026-05-01 1.0.0 - 2026-04-23 Custom AuthKit (WordPress-hosted login):