we have Azure as Auth Provider for our community users. For some reason whenever Auth flow is interrupted in Azure, SF masks result in callback call and error_description is removed. Because of this, we are unable to differentiate between clicks on Forgotten Password or Cancel.

When user clicks on any of these buttons, Azure redirects user to correct callback URL with proper params:


error_description (code) is specific for the action.

When authcallback handles request and determines that it is an error, it redirects this request to error handler. But error_description is not longer available. it is masked with same dummy value regardless of original response:


Is there some way to stop SF from masking this information?

Or are we doing something wrong?

Thank you

  • A hacky but workable solution is to send the callback to your own endpoint that acts as a proxy, log stuff there, then send the original request to the auth provider's out of the box callback.
    – identigral
    Commented Jun 27 at 1:44

1 Answer 1


Based on the discussion with Salesforce support agent, IDEA was created: https://trailblazer.salesforce.com/ideaView?id=0874V0000015LKoQAM vote if you want this feature.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .