ProfileInterceptConfiguration -- With Custom Error Message
Losen, Stephen C (scl)
scl at virginia.edu
Mon Oct 29 06:25:27 EDT 2018
Hi Joshua,
The global-transitions section is missing from your file below. Look at the original file under .../dist/conf/intercept.
You will probably want to modify .../conf/errors.xml to add your new event “ContextCheckDeniedTEST” to the “shibboleth.LocalEventMap” which causes the IDP itself to display an error message. Otherwise the IDP passes the event to the SP in the response. No telling what the SP will do with it.
And to define the error message generated by the IDP, edit .../messages/messages.properties. Add something like this:
ContextCheckDeniedTEST = context-check-denied-test
context-check-denied-test.title = Context Check Denied Test
context-check-denied-test.message = Testing a new Context Check event
This file augments the system file .../system/messages/messages.properties where all the default IDP error messages are defined.
Stephen C. Losen
ITS - Systems and Storage
University of Virginia
scl at virginia.edu<mailto:scl at virginia.edu> 434-924-0640
From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Joshua Brodie
Sent: Sunday, October 28, 2018 11:23 PM
To: users <users at shibboleth.net>
Subject: Re: ProfileInterceptConfiguration -- With Custom Error Message
Apologies Scott!
I've been reading on Spring, quite a bit to take in and still lost after a weekend worth of research.
Where do I place the 'global-transitions' in the 'conf/intercept/intercept-events-flow.xml' file?
<flow xmlns="http://www.springframework.org/schema/webflow"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow.xsd"
abstract="true">
<!-- ADVANCED USE ONLY -->
<!--
You can ignore this file unless you are creating your own custom intercept subflows that want to
report custom events in response to unusual conditions.
-->
<!-- Custom error events to reflect back from user-supplied intercept subflows. -->
<!--
<end-state id="MyCustomEvent" />
-->
<end-state id="ContextCheckDeniedTEST" />
</flow>
On Thu, 25 Oct 2018 at 06:15, Cantor, Scott <cantor.2 at osu.edu<mailto:cantor.2 at osu.edu>> wrote:
On 10/24/18, 10:48 PM, "users on behalf of Joshua Brodie" <users-bounces at shibboleth.net<mailto:users-bounces at shibboleth.net> on behalf of josbrodie at gmail.com<mailto:josbrodie at gmail.com>> wrote:
> My lack of Spring experience is playing a major part in the stumble....what do I place for the transition?
The example is already in the file, it's the rule inside the global-transitions element, you just have to replace the example event with yours. It's a transition from the event to "itself", the end-state by that name. The file's not in front of me at the moment.
-- Scott
--
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<mailto:users-unsubscribe at shibboleth.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20181029/097b8a70/attachment.html>
More information about the users
mailing list