<div dir="ltr">Hi,<div><br></div><div>Why do you need this? For authorization?</div><div><br></div><div>In any case, I would not implement my own authentication mechanism and rely on spring security for LDAP, DB or any other repository</div><div><br></div><div>Y.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 6, 2018 at 3:55 PM, Martin Kuba <span dir="ltr">&lt;<a href="mailto:makub@ics.muni.cz" target="_blank">makub@ics.muni.cz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
<br>
in my implementation of AuthenticationUserDetailsServi<wbr>ce, I need to throw UsernameNotFoundException<br>
for certain combinations of users and clients. But the only argument the loadUserDetails() method<br>
receives is PreAuthenticatedAuthentication<wbr>Token which does not contain id of the client.<br>
<br>
Is it possible to get client id of the current authentication request in the loadUserDetails() method?<br>
<br>
Best regards<br>
<span class="HOEnZb"><font color="#888888"><br>
Martin<br>
<br>
--<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<wbr>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<wbr>~~<br>
CERIT-SC                               Martin Kuba<br>
Institute of Computer Science    email: <a href="mailto:makub@ics.muni.cz">makub@ics.muni.cz</a><br>
Masaryk University             <a href="http://www.ics.muni.cz/~makub/" rel="noreferrer" target="_blank">http://www.ics.muni.cz/~makub/</a><br>
Botanicka 68a, 60200 Brno, CZ     mobil: <a href="tel:%2B420-603-533775" value="+420603533775">+420-603-533775</a><br>
------------------------------<wbr>------------------------------<wbr>--<br>
______________________________<wbr>_________________<br>
mitreid-connect mailing list<br>
<a href="mailto:mitreid-connect@mit.edu">mitreid-connect@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/mitreid-connect" rel="noreferrer" target="_blank">http://mailman.mit.edu/<wbr>mailman/listinfo/mitreid-<wbr>connect</a><br>
</font></span></blockquote></div><br></div>