Custom Domain in UserInfo Audience - "Service Not Found" Error

Overview

This article explains the possible cause behind the below error that appears while sending a /authorize request with a custom domain.

sccess_denied - Service not found

Applies To

  • UserInfo Audience
  • Custom Domain
  • access_denied error

Cause

Check the parameters passed in the /authorize request with the audience parameter. If the value passed in this field is similar to https://{{CustomDomain}}/userinfo, the server will return a Service not found: https://{{CustomDomain}}/userinfo error.

This is because even after setting a custom domain, the API identifier for the /userinfo endpoint remains https://{CanonicalDomain}/userinfo.

Solution

Send the audience as an API identifier for the /userinfo endpoint as https://{CanonicalDomain}/userinfo.