Share via

MSIS7012 : The same client browser session has made '6' requests in the last '1' seconds. Contact your administrator for details

rody 0 Reputation points
Sep 16, 2024, 2:49 AM

We have a .Net application which we implemented ADFS WSFED in it. Its working fine in local but when we deployed we are facing this error.

For Dev in URL I see Realm is HTTPS but wreply is HTTP.
But for local I see Realm is HTTPS but wreply is HTTPS. and Auth is working perfectly.

Tried so many methods, but still getting error: The same client browser session has made '6' requests in the last '1' seconds. Contact your administrator for details. ADFS WSFED.

Please give some suggestions.

Protocol Name: 
wsfed
 
Relying Party: 
URL
 
Exception details: 
Microsoft.IdentityServer.Web.InvalidRequestException: MSIS7042: The same client browser session has made '6' requests in the last '0' seconds. Contact your administrator for details.
   at Microsoft.IdentityServer.Web.Protocols.PassiveProtocolHandler.UpdateLoopDetectionCookie(WrappedHttpListenerContext context)
   at Microsoft.IdentityServer.Web.Protocols.PassiveProtocolHandler.ProcessCommonCookiesInLastAuthenticationStage(ProtocolContext context)
   at Microsoft.IdentityServer.Web.Protocols.WSFederation.WSFederationProtocolHandler.SendSignInResponse(WSFederationContext context, MSISSignInResponse response)
   at Microsoft.IdentityServer.Web.Protocols.WSFederation.WSFederationProtocolHandler.Process(ProtocolContext context)
   at Microsoft.IdentityServer.Web.PassiveProtocolListener.ProcessProtocolRequest(ProtocolContext protocolContext, PassiveProtocolHandler protocolHandler)
   at Microsoft.IdentityServer.Web.PassiveProtocolListener.OnGetContext(WrappedHttpListenerContext context)

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,645 questions
Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,268 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,301 questions
{count} votes

2 answers

Sort by: Most helpful
  1. James Hamil 25,866 Reputation points Microsoft Employee
    Sep 18, 2024, 7:16 PM

    Hi @rody , this can happen when the same client browser session makes multiple requests in a very short period of time.

    Check that the Realm and wreply URLs are consistent across your environments. In your case, it seems like the wreply URL is HTTP in the development environment and HTTPS in the local environment. Make sure both URLs use HTTPS to avoid any inconsistencies.

    The error shows that the loop detection cookie is being triggered. This can happen if the client is making multiple requests in a short period. You can try increasing the loop detection threshold in the ADFS configuration. This can be done by modifying the LoopDetectionThreshold parameter in the ADFS configuration file.

    Make sure that your ADFS server is up to date with the latest patches and updates.

    Please let me know if this works!

    Best,

    James


  2. Bruce (SqlWork.com) 67,406 Reputation points
    Sep 18, 2024, 8:26 PM

    this error is from redirect errors. the login server has detected a login loop. that is after login, it redirects to the application site with the token and the application site redirects back to the login site.

    try an oauth debugging tool for the browser to see what is happening.

    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.