|
/ Documentation /AI Ready/ How to Handle the OAuth Discovery Result in SureRank AI Ready Checks

How to Handle the OAuth Discovery Result in SureRank AI Ready Checks

The OAuth Discovery check in SureRank tests whether the site tells AI agents where to sign in with OAuth. OAuth is the standard way to give an app access to a site without sharing a password. This guide explains each message the check can show, and what to do about it.

Requirements

  • SureRank and SureRank Premium, both active and updated to the latest versions
  • An active SureRank Premium license (Pro, Starter, or Business). Upgrade here
  • AI Ready turned on. See What Is AI Ready in SureRank?.

What the Check Looks At

SureRank looks for three files under /.well-known/ at the root of the domain. Any one of them is enough to pass:

  • /.well-known/oauth-authorization-server
  • /.well-known/openid-configuration
  • /.well-known/oauth-protected-resource

A file counts only when it answers with HTTP 200 and is a JSON file that has a value in its issuer field. For oauth-protected-resource, the field is resource. An empty value, a file that is not JSON, or a normal web page does not count.

WordPress has no OAuth server of its own, so SureRank does not publish these files. It only checks whether something else on the site already does, such as an OAuth server plugin or an identity provider in front of the site.

The row shows Passed and reads “Your site publishes OAuth discovery for agents.” when one of the files is found.

SureRank saves the result for one day. Run Checks clears the saved result and looks again, so a change shows after the next run. The Fix It For Me buttons keep the saved result.

Before You Begin

If you’re looking to see what the check measured, follow the steps below.

  1. Go to SureRank → AI Ready → AI Ready Checks.
  2. Find the row “Agents cannot sign in to your site with OAuth.”
  3. Click the arrow button on the right of the row. The panel explains the check, lists the best practice and where to update it, and shows the address that was measured.

Common Issues

This section lists each message and what to do about it. The row has no Fix It For Me button, because SureRank cannot publish OAuth discovery without an OAuth server behind it.

Issue: “Agents cannot sign in to your site with OAuth.”

Symptom: The row shows a Suggestion. The panel adds that WordPress has no OAuth server of its own, and that agents can still sign in with Application Passwords, which auth.md describes.

Cause: None of the three files above is published. This is the normal result for a WordPress site that has no OAuth server.

Fix: There is nothing to fix if the site does not need OAuth. This Suggestion shows on every site that does not publish OAuth discovery, which is most WordPress sites. If your AI clients sign in with Application Passwords, you can ignore it. Agents can sign in with an Application Password instead. To tell agents how, turn on auth.md:

  1. Go to SureRank → AI Ready → Agent Discovery.
  2. Turn on Publish auth.md, and click Save. The file is served only while Application Passwords are available on the site. WordPress offers them on sites that use HTTPS, and a plugin can turn them off.

If the site does use OAuth, the OAuth server or the identity provider in front of the site must publish the files at /.well-known/oauth-authorization-server and /.well-known/oauth-protected-resource. Ask the developer or the hosting provider to set this up. SureRank cannot do it.

Expected outcome: Once one of the three files answers, the row no longer shows this message after you click Run Checks. If nothing else is found, it shows Passed. Turning on auth.md does not change this row.

Issue: The row shows Passed

Symptom: The row reads “Your site publishes OAuth discovery for agents.”

Cause: One of the three files answers with valid JSON.

Fix: There is nothing to fix.

Expected outcome: The row keeps showing Passed. If the file is removed later, the row changes to the Suggestion after the next Run Checks.

Issue: The row is not shown

Symptom: The OAuth Discovery row is not in the list.

Cause: One of two things:

  • The site is installed in a subdirectory. Files under /.well-known/ count only at the root of a domain, so SureRank does not test them.
  • SureRank could not reach the site while it tested the files. The screen then shows a different row about the site.

Fix: For a subdirectory install, publish the files at the root of the domain with whatever serves it. For an unreachable site, see How to Fix the Site Slow and Site Unreachable Results in SureRank AI Ready Checks.

Expected outcome: After the site can be reached, the row shows on the next run.

Still Not Resolved?

If the steps above do not help, contact the SureRank support team with the following details:

  • WordPress version
  • SureRank and SureRank Pro versions
  • The exact message on the row in AI Ready Checks
  • What you see when you open https://example.com/.well-known/oauth-authorization-server in a browser. Replace example.com with your domain.

Notes

  • The same one-day result is used for the OAuth, A2A, and Web Bot Auth rows, so all three change together.
  • SureRank checks for the files but does not publish them. For the files SureRank does publish, see How to Publish Agent Discovery Files in SureRank.

Related Docs

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top