[mitreid-connect] client id in AuthenticationUserDetailsService

Martin Kuba makub at ics.muni.cz
Wed Feb 7 05:20:41 EST 2018


Hi Yannick,

yes, I need to do authorization at OP. For authentication I rely on preauthentication
by Apache with Shibboleth SP module, because the OP is in fact a proxy for SAML authentication.

Martin

Dne 6.2.2018 v 17:21 Yannick Béot napsal(a):
> Hi,
> 
> Why do you need this? For authorization?
> 
> In any case, I would not implement my own authentication mechanism and rely on spring security for LDAP, DB or any other repository
> 
> Y.
> 
> On Tue, Feb 6, 2018 at 3:55 PM, Martin Kuba <makub at ics.muni.cz <mailto:makub at ics.muni.cz>> wrote:
> 
>     Dear all,
> 
>     in my implementation of AuthenticationUserDetailsService, I need to throw UsernameNotFoundException
>     for certain combinations of users and clients. But the only argument the loadUserDetails() method
>     receives is PreAuthenticatedAuthenticationToken which does not contain id of the client.
> 
>     Is it possible to get client id of the current authentication request in the loadUserDetails() method?
> 
>     Best regards
> 
>     Martin
> 
>     --
>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     CERIT-SC                               Martin Kuba
>     Institute of Computer Science    email: makub at ics.muni.cz <mailto:makub at ics.muni.cz>
>     Masaryk University http://www.ics.muni.cz/~makub/
>     Botanicka 68a, 60200 Brno, CZ     mobil: +420-603-533775 <tel:%2B420-603-533775>
>     --------------------------------------------------------------
>     _______________________________________________
>     mitreid-connect mailing list
>     mitreid-connect at mit.edu <mailto:mitreid-connect at mit.edu>
>     http://mailman.mit.edu/mailman/listinfo/mitreid-connect <http://mailman.mit.edu/mailman/listinfo/mitreid-connect>
> 
> 


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CERIT-SC                               Martin Kuba
Institute of Computer Science    email: makub at ics.muni.cz
Masaryk University             http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ     mobil: +420-603-533775
--------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3735 bytes
Desc: Elektronicky podpis S/MIME
Url : http://mailman.mit.edu/pipermail/mitreid-connect/attachments/20180207/88f86010/attachment.bin


More information about the mitreid-connect mailing list