I am using Azure B2C to authenticate a native Xamarin forms app. It all works perfectly using the correct b2clogin.com domain to return an access token
When I try and return a token using Postman, it does not work if I use b2clogin - only login.microsoftonline.com
After puzzling over this for a while I looked in Fiddler and noticed the URL is changed when it is submitted
This only happens when I switch the domain from one to another
This lead me to the Issuer URL which is set up when you enable B2C authentication for app service in AAD and that it's configured for b2clogin, not for live.microsoftonline.com
The other problem is the microsoftonline domain returns a token but not one that will authenticate with my protected application
I am using Postman to return a token that works with my app. It does not, as described above
When I look in Fiddler, the URL I pass in as Authority which looks like this in Postman
https://mydomainb2c.b2clogin.com/{tenant domain name}/oauth2/v2.0/authorize?p=B2C_1_SiUpIn
has been converted to this
https://mydomainb2c.b2clogin.com/B2C_1_SiUpIn/{tenant domain name}/oauth2/v2.0/authorize?
As you can see it's taken the Policy and put it elsewhere in the URL
This ONLY happens with b2clogin - not microsoftonline
As noted above the URL being posted is simply wrong, and so the effect in Postman is of a constantly reloading page that never reaches login