ProfileInterceptConfiguration -- With Custom Error Message

Joshua Brodie josbrodie at gmail.com
Wed Oct 24 19:11:12 EDT 2018


From
https://wiki.shibboleth.net/confluence/display/IDP30/ContextCheckInterceptConfiguration
(using v.3.3.0) -- I have set up a authorization workflow --- all works as
expected -- aside from when I attempt to place a custom error message
following instruction below....but receiving a '
*java.lang.IllegalArgumentException*' message ('*ContextCheckDeniedTEST*'
is the event I created). I must have missed something....wondering if
anyone can provide a guide on where to look?

"That's all you have to do, but you may want to change the event returned
by your copy so that you can map it to a different error message. To change
the event, edit your new *mycheck-flow.xml* file and replace the reference
to "ContextCheckDenied" with the name of your event. It can be anything,
more or less. Then you'll need to add that event to a file named
*conf/intercept/intercept-events-flow.xml*. The default file includes a
commented example for an event called "MyCustomEvent". Then you'll need to
add that event in *conf/errors.xml *to the action needed."



*"java.lang.IllegalArgumentException: Cannot find state with id
'HandleError' in flow 'intercept' -- Known state ids are
'array<String>['SelectInterceptFlow', 'CallInterceptFlow',
'WriteResultToStorage', 'proceed', 'InvalidProfileContext',
'MessageExpired', 'MessageReplay', 'MessageAuthenticationError',
'AttributeReleaseRejected', 'TermsRejected', 'ContextCheckDenied',
'RestartAuthentication', 'RuntimeException', 'LogRuntimeException',
'ContextCheckDeniedTEST']'"*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20181024/60d534eb/attachment.html>


More information about the users mailing list