Custom Domain Custom Push Notification - put-pn-providers

I am attempting to setup the push notification from my mobile app using the Auth0 SDK.

Our copy link for the push notification enrollment appears to use the non custom domain url.

I found https://auth0.com/docs/api/management/v2/guardian/put-pn-providers but am having an issue putting the custom provider pn in place.

It is returning a 400 and I am not finding any documentation around this.

Thank you!

Hi @jrceja313,

The endpoint provides an error message to explain what the error is.

Example:

Body:

{
  "provider": "vgyub"
}

Response:

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Payload validation error: 'Invalid value \"vgyub\"' on property provider.",
  "errorCode": "invalid_body"
}

The endpoint’s documentation says that the 400 error occurs due to Invalid input based on schemas. Could you provide the body of your request?

Have a good one,
Vlad

Body:
{
“provider”: “custom”
}

Response:
{
“statusCode”: 400,
“error”: “Bad Request”,
“message”: “Payload validation error: ‘Invalid value "custom"’ on property provider.”,
“errorCode”: “invalid_body”
}

1 Like

Hi @jrceja313,

Whenever you receive an invalid_body error for an endpoint, expand the BODY PARAMETERS section to see what rules must be applied.

In this case, the Update Push Notification configuration endpoint can only receive guardian, sns, or direct as input.

If you have any other questions, feel free to reach out.

Have a good one,
Vlad

Okay, that may be a misinterpretation on my part.
How do I get my Copy Code for push notification to have the base_url to point at my custom domain.

Thank you,
Jeff

I have created a support ticket for this as it may be similar to early access features and is not configurable in the tenant.

Hi @jrceja313,

You can find everything about setting up push notifications, including setting up the Google Play and Apple Store URLs, in this article:

The easiest way to configure it would be through the Auth0 Dashboard, at Security > Multi-factor Auth > Push Notification using Auth0 Guardian.

If you have any other questions, feel free to reach out.

Have a good one,
Vlad