Hi Yuriy,
Thanks for your answer.
To sum up my post I am in a SAML SP=>IdP situation (where Gluu is the IdP) and I have 2 questions regarding custom authentication:
1) In the jython script, if my custom authentication is a success, how to redirect user to the page (s)he requested in the first place before being redirected in Gluu's IdP? (if I understand correctly, your answer is a static redirect which wouldn't match my need)
2) My custom authentication method (the one from my jar) returns me a String (a kind of token), how to add this value (that I was able to get during the authenticate method) in the saml response?
And finally I have another question:
3) how to have the web admin interface using the "basic" authentication script and a SP using a custom script?
About 1, I can see in the saml sample that you are auto enrolling users, is that mandatory (I'm not doing that, maybe this is why it's not working)?
Thanks,
Ben