MediumEntra External ID (EEID) AADSTS1100001 error with token issuance custom authentication extensions | by Rory Braybrook | The new control plane | Medium
Sitemap
The new control plane

“Identity is the new control plane”. Articles around Microsoft Entra ID, Entra External ID and Azure AD B2C. Click the “Archive” link at the bottom for more posts.

Entra External ID (EEID) AADSTS1100001 error with token issuance custom authentication extensions

--

Image of American merchant token coin
American merchant token coin via Wikimedia

The actual error is:

AADSTS1100001: Non-retryable error has occurred. Underlying error code: 
1003002

I was testing logging in from EEID to a guest account in an Entra ID tenant when I encountered this error.

In EEID, you don’t have to configure any federation configuration parameters. It is done by default.

Image of user can be invited via email with no configuration

The user was invited and had accepted the invitation.

If you research the error, you will see:

Error AADSTS1100001 (Underlying 1003002)indicates a non-retryable failure in 
a Microsoft Entra custom authentication extension, likely when using Azure
Functions as a claim provider. The extension failed to receive a valid JSON
response from the Azure Function, often due to improper payload format,
missing permissions, or incorrect configuration.

But if you look at the user flow, you see:

Press enter or click to view image in full size
Image showing no custom extensions configured

There are no custom authentication extensions configured?

Which puzzled me for a while, so I looked at all the extensions.

Image showing token ussuance start extension

And then I realised that I have a “Token Issuance Start” extension as well, and that endpoint no longer exists!

OK, that explained the error, but I can log in to other user flows, and they work?

Get Rory Braybrook’s stories in your inbox

Join Medium for free to get updates from this writer.

Time to break out Graph Explorer!

# Get All User Flows with Full Details (Expanded)
GET https://graph.microsoft.com/v1.0/identity/authenticationEventsFlows?
$expand=*

This gives you a lot of information, but search for your user flow name in the response.

"@odata.type": "#microsoft.graph.externalUsersSelfServiceSignUpEventsFlow",
"id": "aa2...d84",
"displayName": "B2C",

We want the ID. Then run:

https://graph.microsoft.com/v1.0/identity/authenticationEventsFlows/aa2...d84

That gives the info. for that user flow only.

Look for these properties:

  • onAuthenticationMethodLoadStart
  • onAttributeCollectionStart
  • onAttributeCollectionSubmit
  • onInteractiveAuthFlowStart

I see

 "onAttributeCollectionStart": null,
"onAttributeCollectionSubmit": null,

But the other two have entries.

I then see:

"conditions": {
"applications": {
"includeApplications@odata.context":
"https://graph.microsoft.com/v1.0/$metadata#identity/
authenticationEventsFlows('aa2...d84')/
microsoft.graph.externalUsersSelfServiceSignUpEventsFlow/
conditions/applications/includeApplications",
"includeApplications": [
{
"appId": "302...3cc"
}
]
}
},

and I see a condition for that appId.

It is the ID of the application attached to the user flow that gets the error.

That’s why only this user flow has issues 😃

All good!

--

--

Rory Braybrook
Rory Braybrook

Written by Rory Braybrook

NZ Microsoft Identity dude and MVP. Entra ID/Entra External ID/Azure AD B2C/VC. StackOverflow: https://bit.ly/2XU4yvJ Presentations: http://bit.ly/334ZPt5

The new control plane
The new control plane

Published in The new control plane

“Identity is the new control plane”. Articles around Microsoft Entra ID, Entra External ID and Azure AD B2C. Click the “Archive” link at the bottom for more posts.