'Change JWT payload format with Azure B2C custom policies

I would like to implement JWT SSO for Zendesk with Azure AD B2C custom policies. For some internal reasons, we cannot use SAML.

My problem is Zendesk requires that the return URI respect the format

https://yoursubdmain.zendesk.com/access/jwt?jwt={payload} 

But by default, using Microsoft samples, the return uri is :

    https://yoursubdmain.zendesk.com/access/jwt#id_token={payload} 

I am new user of custom policies, I have no idea how I can change the format of the Redirect URI.



Solution 1:[1]

You cannot change the way AAD B2C return the tokens in the query parameters. You might have to build a proxy to transform the response from AAD B2C and send it to zendesk. Or use SAML.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jas Suri - MSFT