Users via OIDC Before Blocking Access?"

이용각 이용각 0 Reputation points
2025-05-22T14:06:45.7666667+00:00

However, we would prefer not to show this default Microsoft error page. Instead, we want to redirect users to a custom login page or a message we define ourselves.

Could you please suggest a way to handle this scenario gracefully, so that blocked users are redirected to our own UI instead of encountering the Microsoft block page?

Additionally, on the backend server, how can I retrieve user information from a hybrid Azure AD-joined PC using a token or Kerberos ticket, without relying on OIDC calls?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,687 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Eric Nguyen 320 Reputation points Independent advisor
    2025-05-23T08:50:18.68+00:00

    Hi 이용각 이용각,

    Thank you for contacting Q&A Forum. I would like to provide my findings and proposed solution:

    Below is a two‑part answer addressing your concerns:

    For Blocked Users: Intercept the OIDC authentication failure (using the middleware’s failure event or by configuring passive authentication) so that you can manually redirect users to your custom login or error page.

    For Backend User Information: Enable Windows Integrated Authentication on your server to receive and validate Kerberos tickets from hybrid Azure AD‑joined PCs. Use the ticket’s validated identity to obtain user details directly, and consider constrained delegation (protocol transition) if your backend must access additional resources on behalf of the user.

    Kindly let me know if this work for you and please let me know if you have any further question.

    If I have answered your question, please accept this as answer as a token of appreciation and don't forget to give a thumbs up for "Was it helpful"!

    Best regards,
    Eric


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.