[IDP] ExternalAuthentication implementation

Robert Gründler robert at dubture.com
Thu Oct 29 09:00:45 EDT 2015


Hi all,

according to the documentation [1], an External authentication mechanism would
result in java code similar to this:


try {
    final String key = ExternalAuthentication.startExternalAuthentication(httpRequest);
    String username = httpRequest.getRemoteUser();
    if (username != null) {
        httpRequest.setAttribute(ExternalAuthentication.PRINCIPAL_NAME_KEY, username);
    }
    ExternalAuthentication.finishExternalAuthentication(key, httpRequest, httpResponse);

} catch (final ExternalAuthenticationException e) {
    throw new ServletException("Error processing external authentication request", e);
}


However, when i call ExternalAuthentication.startExternalAuthentication(httpRequest); the
doStart() of the ExternalAuthentication class throws an not implemented exception.


My question: Are there any examples on how to implement an ExternalAuthentication servlet?


regards


-robert




[1] https://wiki.shibboleth.net/confluence/display/IDP30/ExternalAuthnConfiguration
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20151029/40b0274f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://shibboleth.net/pipermail/users/attachments/20151029/40b0274f/attachment.sig>


More information about the users mailing list