<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif"><div>A is requested. B is reached. Return A</div><div><br></div><div>It is the last case I would like to change. If the auth process reached B, I want to return B even if A was requested.</div></div></blockquote><div><br></div></div><div dir="ltr"><div class="gmail_quote">We had a similar use case where we wanted this behavior in response to inexact (better, minimum) matching on the SP. We met our requirements by careful configuration of authn-comparison.xml and plugging in a custom ValidateExternalAuthentication action, which was fairly straightforward. That's to say you may need to write some extension components to do what you want. Scott made some changes to that component, though, that might have allowed us to get by with defaults but we never looped back around. It was hard enough getting it through testing once ;)</div><div class="gmail_quote"><br></div><div class="gmail_quote">M</div><div class="gmail_quote"><br></div></div></div>