<div dir="ltr">Hi,<div>I have this problem. I have built custom authentication engine which has several means of authentication (you can use username/password, sms, nfc). When user is already authenticated I want to check what method he used and if he didnt use strong enough authentication for selected sp I want to force him to reauthenticate. Example:</div>
<div><br></div><div>Lets say we have SP1 and SP2. It doesn&#39;t matter for SP1 what method user used, if he comes through SP2, he should authenticate only using mobile phone. Now it works like this</div><div><br></div><div>
user accesses SP1 -&gt; he is redirected to my IDP -&gt; authenticates using password -&gt; SP1 accepts it</div><div>user accesses SP2 -&gt; he is redirecred to my IDP -&gt; IDP authenticates him based on previous session -&gt; SP2 accepts it</div>
<div><br></div><div>I want to change it to something like this:</div><div><br></div><div>user accesses SP1 -&gt; he is redirected to my IDP -&gt; authenticates using password -&gt; SP1 accepts it<br></div><div>user accesses SP2 -&gt; he is redirecred to my IDP -&gt; IDP checks if he used strong enough method when he authenticated himself at SP1 -&gt; if he USED strong enough method, IDP authenticates him based on previous session like before, if he DIDNT used strong enough method, he is forced to re-authenticate<br>
</div><div><br></div><div>How can I achieve something like this?</div></div>