Common problems
Most problems with single sign-on come from the server or a plugin between the provider and your site, not from the provider. They are the same for Google, Microsoft, Apple, Facebook, GitHub and your own provider. This page goes through them, each with what you see and what to do.
When the login fails on your site, the member lands on the community login page with a line that says why, such as Logging in with Google was cancelled. That line is the first clue. When nothing of your site shows at all, look at the page they land on instead.

A Forbidden page right after the provider
What you see: after logging in at the provider, a page from your host says 403 Forbidden or You do not have permission to access this document, with nothing of your site on it.
Why: a firewall on the server, usually ModSecurity with the Comodo or OWASP rules, blocked the answer of the provider on its way to your site. The answer carries words that some rules mistake for an attack. Google, for example, names the scopes it gave in the address, one of them ends in userinfo.profile, and Comodo rule 210580 reads .profile as an attempt to open a file of the server. Apple posts its answer, so a rule on posted fields can catch it too.
What to do: turn that one rule off for the redirect address alone, so it keeps guarding the rest of your site.
-
Find the rule. The error log of your host has a line for each block, with the address and the number of the rule, such as
ModSecurity: Access denied with code 403 (phase 2). Matched phrase ".profile" at ARGS:scope ... [id "210580"] ... [uri "/wp-json/wordplus/v1/sso/back"]. -
Turn it off for that address. In Plesk, go to Websites & Domains, your domain, Apache & nginx Settings, and add this under Additional directives for HTTPS, with the number of the rule:
<IfModule mod_security2.c>
<LocationMatch "^/wp-json/wordplus/v1/sso/back">
SecRuleRemoveById 210580
</LocationMatch>
</IfModule>On cPanel and most shared hosts you cannot change the rules yourself. Send the log line to the support of your host and ask them to turn that rule off for the address
/wp-json/wordplus/v1/sso/back. -
Start a new login. The code in the address that was blocked works only once.
Turning the whole firewall off for your site also works, but leaves it unguarded. Turn off the one rule.
The provider answer is refused by WordPress
What you see: after the provider, a page of plain text such as {"code":"rest_disabled"...} or {"code":"rest_cannot_access"...}, or a 401 or 404 page of your site.
Why: the redirect address is an address of the WordPress REST API, /wp-json/wordplus/v1/sso/back. Some security plugins turn the REST API off for visitors, and every member arrives there as a visitor, as they are not logged in yet.
What to do: in that plugin, let visitors reach the route wordplus/v1/sso/back, or let the REST API answer visitors again. Poly Community needs the REST API for much else too.
The login always took too long
What you see: the login page says That login took too long, or it was started in another browser. every time, though the member was quick.
Why: a login is tied to the browser that starts it, by a cookie, and has ten minutes. Something stops the cookie from coming back with the answer:
- Your site has two addresses. The login starts at
https://example.comand the provider sends the member back tohttps://www.example.com, or the other way round, or one is http. The cookie of one address does not go to the other. Make the WordPress Address and Site Address under Settings → General the same, send every visitor to that one address, and enter the redirect address in the provider app exactly as Services → Single sign-on shows it. - A page cache or a CDN keeps the login addresses. A rule that caches everything, such as Cache Everything in Cloudflare, can serve an old
wp-login.phpor an old answer. Leavewp-login.phpand every address under/wp-json/out of the cache. - The browser blocks cookies of your site. Try another browser, or a private window without extensions.
The provider could not be reached
What you see: the login page says the provider could not be reached, or its answer could not be checked.
Why and what to do:
- The client secret is wrong or was made again in the provider console. Copy it again into the dialog of the provider under Services → Single sign-on.
- The server cannot reach the provider. Some hosts block requests from the server to other sites. Tools → Site Health in WordPress says when the site cannot reach WordPress.org, which usually means it cannot reach the providers either. Ask your host to allow requests to the provider, such as
oauth2.googleapis.comandwww.googleapis.comfor Google. - The clock of the server is off. The answer of the provider is valid for a short time, and a clock more than a minute off makes it look expired or not yet valid. Ask your host to keep the clock of the server in time.
The redirect address has a question mark in it
What you see: the Redirect address reads like https://example.com/?rest_route=/wordplus/v1/sso/back, and a provider refuses it, Microsoft for personal accounts among them.
Why: your site uses plain permalinks.
What to do: under Settings → Permalinks, choose any structure but Plain. The redirect address becomes https://example.com/wp-json/wordplus/v1/sso/back. Enter the new address in every provider app.
The site moved to a new address
When the site moves to https or to a new domain, its redirect address moves with it. Copy the new one from Services → Single sign-on and replace the old one in the app of every provider you use. Until then, the providers send members to the old address.
The button does not show
- The provider is not set up, or not turned on. Services → Single sign-on says Set up and On for a provider whose button shows. Turn it on under Joining → Logging in and press Save changes.
- Missing on the sign-up form only: Let new people join with it is off for that provider. A provider that lets no new people join has its button on the login forms alone, as it cannot make an account. Turn it on in its dialog under Services → Single sign-on if new people should join with it.
- A page cache keeps the old login page. Clear the cache of the site.
- Another login plugin draws its own login form. Joining → Logging in lists the login plugins it finds on the site. Use the buttons of one of them, not both.
Someone cannot join
What you see: the login page says There is no account here for that Google account yet. It goes on: if they have one, log in to it another way and connect Google in the account settings. Then, where the site lets anyone sign up, If you are new here, create an account, and where it does not, If not, ask the community team to add you.
Why: Let new people join with it is off for the provider, or it is on and the email address is not at a domain under Only these domains can join. See Let new people join with it.
A member who already has an account sees it too when the provider gives an address that is not the one of their account: another address of theirs, or a hidden one, as Hide My Email of Apple gives. Nothing on the site can match it to them. They log in another way once and press Connect beside the provider under Connected accounts in their account settings. The team cannot connect a provider for a member.
Adding someone yourself: make the account under Users, then Add New, with their email address, and let WordPress send them the link to choose a password. When they press the button of the provider and it gives that same address, they are asked to log in once with that password or a code, and the provider is connected from then on.
Not problems
- You already have an account here with an address, log in to it once: this is how an account that already has the address is connected safely. See An account that already has the address.
- A two-factor step after the provider: two-factor plugins ask their step after a provider, as after a password.
- A member locked out by a plugin that limits login attempts is locked out through providers too, as with a password.