[IDP] ExternalAuthentication implementation

Robert Gründler robert at dubture.com
Thu Oct 29 10:36:21 EDT 2015


> On 29 Oct 2015, at 15:05, Cantor, Scott <cantor.2 at osu.edu> wrote:
> 
> 
>> My filter code looks like this (note that this is just throw-away code, solely for testing purposes):
> 
> ExternalAuthentication is an abstract class, you can't create it. You only call its static methods.

This is the sourcecode of the ExternalAuthentication class that comes with the latest snapshot via maven:

https://gist.github.com/pulse00/c0cc1a353fd8933f2a89

The class is not abstract. Maybe i’m working with the wrong library. But as the documentation does not state
how and where to add the ExternalAuthentication servlet to the IDP / war, all i could do was using trial and error.


> 
>> Is the idea to subclass ExternalAuthentication and provide implementations for the parts that throw an ExternalAuthenticationException("Not implemented”)?
> 
> No, start and finish are static methods.
> 
>> But that’s the actual code that is called by the example in the documentation.
> 
> Except for the line you added.


In this line, you can see that the implementation of startExternalAuthentication() expects the CONVERSATION_KEY
attribute (whatever that conversation key is, that’s not documented) to be an instance of ExternalAuthentication.

That’s why i’ve tried to instantiate it and set it, otherwise startExternalAuthentication() throws another exception.

Anyway, the documentation does not mention where to put the servlet implementation so that the idp can load it.

If anyone knows how / where to put that class, i’d be grateful.


regards

-robert


-------------- 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/9433726c/attachment.sig>


More information about the users mailing list