Hello everybody and thanks for reaching out. Since we may need access to your tenant and resources the best way to deal with this is Creating a Support Request. Please allow Advanced diagnostic information and mention that you want it assigned to Alfredo Revilla (that's me).
Azure B2C API Connector - ShowBlockPage Ignored
I am implementing a API Connector that is submitting a response to the B2C User Flow. The API always returns:
{
"version": "1.0.0",
"action": "ShowBlockPage",
"userMessage": "Account Block"
}
In Azure AAD Audit, I can see a event "An API was called as part of a user flow" in the "PreTokenIssuance" step. The audit event indicates that the API call was correct, and it received the "ShowBlockPage" action ("{"action":"ShowBlockPage","httpStatus":"200","numberOfAttempts":1").
The problem is that the ShowBlockPage doesn't show the userMessage. It simply proceeds with the authentication process without any block. I can't find any path to have the User Flow recognize the outcome of the API connection. Any idea?
2 answers
Sort by: Most helpful
-
Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,461 Reputation points
2022-10-24T17:46:19.457+00:00 -
Lennart Hedlund 1 Reputation point
2023-02-22T23:01:23.25+00:00 Since this is not managed by Microsoft in returns:
I did create NotFoundObjectResult("ShowBlockPage","Whatever")
This creates an exception on client side.
Ugly? YES!
Does it work? YES!