Azure B2C API Connector - ShowBlockPage Ignored

SB 6 Reputation points
2022-06-30T14:29:00.887+00:00

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?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,961 questions
{count} vote

2 answers

Sort by: Most helpful
  1. 2022-10-24T17:46:19.457+00:00

    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).


  2. 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!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.