<div dir="ltr"><div dir="ltr"><div>From <a href="https://wiki.shibboleth.net/confluence/display/IDP30/ContextCheckInterceptConfiguration">https://wiki.shibboleth.net/confluence/display/IDP30/ContextCheckInterceptConfiguration</a> (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 '<strong>java.lang.IllegalArgumentException</strong>' message ('<strong>ContextCheckDeniedTEST</strong>' is the event I created). I must have missed something....wondering if anyone can provide a guide on where to look?</div><br><div>"<span style="color:rgb(23,43,77);font-family:-apple-system,system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px">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 </span><em style="color:rgb(23,43,77);font-family:-apple-system,system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px">mycheck-flow.xml</em><span style="color:rgb(23,43,77);font-family:-apple-system,system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px"> 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 </span><em style="color:rgb(23,43,77);font-family:-apple-system,system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px">conf/intercept/intercept-events-flow.xml</em><span style="color:rgb(23,43,77);font-family:-apple-system,system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px">. The default file includes a commented example for an event called "MyCustomEvent". Then you'll need to add that event in </span><em style="color:rgb(23,43,77);font-family:-apple-system,system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px">conf/errors.xml </em><span style="color:rgb(23,43,77);font-family:-apple-system,system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px">to the action needed.</span>"</div><div><br></div><div><br></div><div><br> <p><strong>"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']'"</strong></p></div></div></div>