Normally plone redirects to a login form when it gets unauthorised.
Some PAS plugins like saml2 do redirects to other services to do the login. Those services might already remember the user and redirect back. This leads to a redirect loop.
I consider this a Plone failure. It doesn't really make sense to ask the user to login when they are already logged in. Plone should instead give an unauthorised error page perhaps with a button to logout and login as a different user.
Even without the redirect loops this would be better UX as often the user doesn't know why they are given a login box and this creates confusion.
Normally plone redirects to a login form when it gets unauthorised.
Some PAS plugins like saml2 do redirects to other services to do the login. Those services might already remember the user and redirect back. This leads to a redirect loop.
I consider this a Plone failure. It doesn't really make sense to ask the user to login when they are already logged in. Plone should instead give an unauthorised error page perhaps with a button to logout and login as a different user.
Even without the redirect loops this would be better UX as often the user doesn't know why they are given a login box and this creates confusion.