[JIRA] (IDP-1907) Enable Spring MVC's CORS-handling features
Henri Mikkonen (Jira)
jira at shibboleth.atlassian.net
Wed Feb 23 16:31:14 UTC 2022
Henri Mikkonen ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A1614c4a5-c89e-4edc-9421-990bd6ea85fd ) *created* an issue
Identity Provider ( https://shibboleth.atlassian.net/browse/IDP?atlOrigin=eyJpIjoiNDcyZGMzYTYxODk2NDBmYWE1MjY5MDllNjI0ZGEzNWMiLCJwIjoiaiJ9 ) / New Feature ( https://shibboleth.atlassian.net/browse/IDP-1907?atlOrigin=eyJpIjoiNDcyZGMzYTYxODk2NDBmYWE1MjY5MDllNjI0ZGEzNWMiLCJwIjoiaiJ9 ) IDP-1907 ( https://shibboleth.atlassian.net/browse/IDP-1907?atlOrigin=eyJpIjoiNDcyZGMzYTYxODk2NDBmYWE1MjY5MDllNjI0ZGEzNWMiLCJwIjoiaiJ9 ) Enable Spring MVC's CORS-handling features ( https://shibboleth.atlassian.net/browse/IDP-1907?atlOrigin=eyJpIjoiNDcyZGMzYTYxODk2NDBmYWE1MjY5MDllNjI0ZGEzNWMiLCJwIjoiaiJ9 )
Issue Type: New Feature Assignee: Unassigned Components: Spring Created: 23/Feb/22 11:31 AM Priority: Trivial Reporter: Henri Mikkonen ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A1614c4a5-c89e-4edc-9421-990bd6ea85fd )
The base class for Spring MVC HandlerMapping implementations ( org.springframework.web.servlet.handler.AbstractHandlerMapping ) provides functionality to handle CORS requests. They can't currently be used as the beans are initialised in the *mvc-beans.xml* file residing in the idp-conf-impl JAR. For instance:
<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping" p:order="0"
p:flowRegistry-ref="flowRegistry">
<property name="flowUrlHandler">
<bean class="net.shibboleth.idp.profile.support.PathInfoSupportingFlowUrlHandler"
p:supportedFlows="#{getObject('shibboleth.RESTFlows') ?: getObject('shibboleth.DefaultRESTFlows')}" />
</property>
</bean>
The bean could be initialised with a configurable corsConfigurationSource -property in order to activate the CORS handling for the desired endpoints.
( https://shibboleth.atlassian.net/browse/IDP-1907#add-comment?atlOrigin=eyJpIjoiNDcyZGMzYTYxODk2NDBmYWE1MjY5MDllNjI0ZGEzNWMiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/IDP-1907#add-comment?atlOrigin=eyJpIjoiNDcyZGMzYTYxODk2NDBmYWE1MjY5MDllNjI0ZGEzNWMiLCJwIjoiaiJ9 )
Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100192- sha1:731e729 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20220223/5745308f/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-28bb5986-2b1a-416a-80f6-a60ec7dd7f42
Type: image/png
Size: 341 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220223/5745308f/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-139111bf-d8f5-4c7a-85a0-663f62316c09
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220223/5745308f/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-trivial-69e525b2-df2a-4e2c-8bd7-d10a435ebf88
Type: image/png
Size: 563 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220223/5745308f/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-33a5710b-81b3-4a46-95d3-d0a815970020
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220223/5745308f/attachment-0007.png>
More information about the commits
mailing list