custom interceptor, where to put java code?
Pablo Vidaurri
psvidaurri at gmail.com
Sun Feb 3 11:36:40 EST 2019
Thanks for the reply, I have previously reviewed those items and it did
help me with setting up an interceptor to check for attribute values during
the post auth flow.
What I have now is code in "MyCustomCheck.java" with a method that returns
a boolean and the class depends on external jars (net.sf.json for example).
1) in edit-webapp, can I just create a src folder to put in the java?
2) is there somewhere that I can define my jar dependencies or do i just
throw the jars into edit-webapp/WEB-INF/lib?
3) How do I define the flows/intercept/customcheck/customcheck-beans.xml to
call MyCustomCheck.doSomeCheck() and pass the returned boolean value to my
customcheck-flow.xml to process the decision-state block?
customcheck-flow.xml has:
<decision-state id="CheckContext">
<if
test="ContextCheckPredicate.apply(opensamlProfileRequestContext)" <-- how
to test the return value from my java class?
then="proceed" else="DoCustom" />
</decision-state>
Sorry, but it is not obvious to me how to implement this type of check.
Maybe it's my lack of experience with SWF.
-spv
On Sun, Feb 3, 2019 at 1:17 AM Rod Widdowson <rdw at steadingsoftware.com>
wrote:
> Where would be the best location so it will not be an issue when I upgrade
> shibboleth?
>
>
> edit-webapp
>
> See here[1] under ‘Installation Layout’
>
> It's also not clear to me how to define the interceptor bean to make the
> java call.
>
>
> Does [2] help?
>
> [1] https://wiki.shibboleth.net/confluence/display/IDP30/Configuration
> [2]
> https://wiki.shibboleth.net/confluence/display/IDP30/ProfileInterceptConfiguration
> .
>
> --
> For Consortium Member technical support, see
> https://wiki.shibboleth.net/confluence/x/coFAAg
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20190203/2a5bc3b5/attachment.html>
More information about the users
mailing list