> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-docs-event-stream-action-templates.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Test an Auth0 connection from the Dashboard to verify successful authentication against a configured identity provider and return of a valid user profile.

# Test Connections

export const AuthCodeBlock = ({filename, icon, language, highlight, children}) => {
  const [displayText, setDisplayText] = useState(children);
  const [copyText, setCopyText] = useState(children);
  const wrapperRef = React.useRef(null);
  useEffect(() => {
    let unsubscribe = null;
    function init() {
      if (!window.autorun || !window.rootStore) {
        return;
      }
      unsubscribe = window.autorun(() => {
        let processedChildrenForDisplay = children;
        let processedChildrenForCopy = children;
        for (const [key, value] of window.rootStore.variableStore.values.entries()) {
          const escapedKey = key.replaceAll(/[.*+?^${}()|[\]\\]/g, (String.raw)`\$&`);
          let displayValue = value;
          if (key === "{yourClientSecret}" && value !== "{yourClientSecret}") {
            displayValue = value.substring(0, 3) + "*****MASKED*****";
          }
          processedChildrenForDisplay = processedChildrenForDisplay.replaceAll(new RegExp(escapedKey, "g"), displayValue);
          processedChildrenForCopy = processedChildrenForCopy.replaceAll(new RegExp(escapedKey, "g"), value);
        }
        setDisplayText(processedChildrenForDisplay);
        setCopyText(processedChildrenForCopy);
      });
    }
    if (window.rootStore) {
      init();
    } else {
      window.addEventListener("adu:storeReady", init);
    }
    return () => {
      window.removeEventListener("adu:storeReady", init);
      unsubscribe?.();
    };
  }, [children]);
  useEffect(() => {
    if (!wrapperRef.current) return;
    const originalWriteText = navigator.clipboard.writeText.bind(navigator.clipboard);
    let isOverriding = false;
    const handleClick = e => {
      const button = e.target.closest('[data-testid="copy-code-button"]');
      if (!button || !wrapperRef.current.contains(button)) return;
      isOverriding = true;
      navigator.clipboard.writeText = text => {
        if (isOverriding) {
          isOverriding = false;
          navigator.clipboard.writeText = originalWriteText;
          return originalWriteText(copyText);
        }
        return originalWriteText(text);
      };
      setTimeout(() => {
        if (isOverriding) {
          isOverriding = false;
          navigator.clipboard.writeText = originalWriteText;
        }
      }, 100);
    };
    const wrapper = wrapperRef.current;
    wrapper.addEventListener('click', handleClick, true);
    return () => {
      wrapper.removeEventListener('click', handleClick, true);
      if (navigator.clipboard.writeText !== originalWriteText) {
        navigator.clipboard.writeText = originalWriteText;
      }
    };
  }, [copyText]);
  return <div ref={wrapperRef}>
      <CodeBlock filename={filename} icon={icon} language={language} lines highlight={highlight}>
        {displayText}
      </CodeBlock>
    </div>;
};

export const codeExample = `https://{yourDomain}/authorize?response_type=token&scope=openid%20profile&client_id={yourClientId}&redirect_uri=http%3A%2F%2Fjwt.io&connection={connectionToTest}`;

Generally, to test a connection, you must log in to the <Tooltip tip="Auth0 Dashboard: Auth0's main product to configure your services." cta="View Glossary" href="/docs/glossary?term=Auth0+Dashboard">Auth0 Dashboard</Tooltip>.

1. Navigate to [Auth0 Dashboard](https://manage.auth0.com/#), and select **Authentication**, then select the type of connection you want to test.
2. Locate the connection you want to test, and select **Try Connection** from its **More Options** menu (**...**).
3. Log in with the identity provider.
4. Wait for the **It Works!** page that displays the result.

Auth0 simulates the authentication flow as if it were an application, displaying the User Profile resulting from a successful authentication.

## Test partner connections

If you are testing a connection that belongs to someone else, and you don't have test credentials with them, it is not possible to be logged in to the Auth0 Dashboard. This is common when connecting to Enterprise connections, such as <Tooltip tip="Security Assertion Markup Language (SAML): Standardized protocol allowing two parties to exchange authentication information without a password." cta="View Glossary" href="/docs/glossary?term=SAML">SAML</Tooltip> <Tooltip tip="Security Assertion Markup Language (SAML): Standardized protocol allowing two parties to exchange authentication information without a password." cta="View Glossary" href="/docs/glossary?term=Identity+Providers">Identity Providers</Tooltip> (IdPs) or Active Directory. The solution? Your partners can test the new connection.

1. Register a test app.

   * Navigate to [Auth0 Dashboard > Applications > Applications](https://manage.auth0.com/#/applications), and select **Create Application**. You can give it any name (for example, `Test App`).
   * In the settings of the newly-created app, set **Allowed Callback URLs** to `http://jwt.io`.
   * Select **Save Changes**.
2. Send your partner the link to log in.

   <AuthCodeBlock children={codeExample} language="http" />

   Replace these two parameters:

   * `client_id`: Client ID of the application created in Step 1.
   * `connection`: Name of the connection you want to test.
3. Test the connection. When your partner follows the link, they will be redirected to their configured Identity Provider (the connection). After successful authentication, they will be sent back to [JWT.io](http://jwt.io) where all user properties will be decoded from the token.

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
  The test app is not a real app. [JWT.io](http://jwt.io) is a testing website that decodes tokens sent in a URL fragment.
</Callout>
