Auth0 Home Blog Docs

Rules not rewriting Application Callback URL


#1

We authenticate users to different Callback URL:s to a SAML enabled service. (The URL:s Witch are stored on the user app_metadata).
So I try to do this via Rules using context.samlConfiguration.destination I have also tried using context.samlConfiguration.recipient.
Everything looks great, but redirect_uri is always the same as entered as the Application Callback URL in the application.

Is there anyway of rewriting this in the rules correctly?


#2

Hi @kivi.
Rules can’t change the redirect_uri/AssertionConsumerServiceUrl. This is where the application tells Auth0 where to send the response when requesting an authentication, so changing that would break a basic expectation of the protocol.