"wsfederation authentication login loop" Code Answer


the cause of the problem was the request and response urls where not the same. i.e. when a user entered the website url and did not prefix it with https the redirect loop would occur.

the cause was hidden because the user is immediately redirected to adfs if they are not authenticated or authorized.

all i had to do was to ensure that all user requests are redirected back to the https url and that the http binding is removed.(either or would have worked just fine)

this is the code i used to ensure that all requests are redirect to https.

        <rule name="redirect to https">
          <match url="(.*)"/>
            <add input="{https}" pattern="off"/>
            <add input="{request_method}" pattern="^get$|^head$" />
          <action type="redirect" url="https://{http_host}/{r:1}"/>

i hope this post was helpful.

By Muzammal Hussain 3310-FBASBSSE on March 5 2022

Answers related to “wsfederation authentication login loop”

Only authorized users can answer the Search term. Please sign in first, or register a free account.