[JIRA] (IDP-1907) Enable Spring MVC's CORS-handling features

Henri Mikkonen (Jira) jira at shibboleth.atlassian.net
Thu Mar 17 11:36:46 UTC 2022


Henri Mikkonen ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A1614c4a5-c89e-4edc-9421-990bd6ea85fd ) *resolved* as *Done*

The bean shibboleth.CorsConfiguration is now injected to the FlowHandlerMapping. If the bean is null / non-existing, the behaviour should remain as before injecting the bean. If it's set, it's supposed to be a map of CorsConfigurations.

For instance:

   <util:map id= "shibboleth.CorsConfigurations" value-type= "org.springframework.web.cors.CorsConfiguration" >
       <entry key= "/oidc/userinfo" >
           <bean class= "org.springframework.web.cors.CorsConfiguration"
               p:allowedOrigins= "http: //localhost:8080,http://localhost:8081"
               p:allowedMethods= "GET,POST"
               p:allowedHeaders= "Authorization"
               p:maxAge= "1800" />
       </entry>
   </util:map>

The keys in the map correspond to the locations under the <context>/profile URL space.

Identity Provider ( https://shibboleth.atlassian.net/browse/IDP?atlOrigin=eyJpIjoiNzM2YmMyMmNhMDkzNGI0OGJmMmRhMGNjNzIwYjI3ODgiLCJwIjoiaiJ9 ) / New Feature ( https://shibboleth.atlassian.net/browse/IDP-1907?atlOrigin=eyJpIjoiNzM2YmMyMmNhMDkzNGI0OGJmMmRhMGNjNzIwYjI3ODgiLCJwIjoiaiJ9 ) IDP-1907 ( https://shibboleth.atlassian.net/browse/IDP-1907?atlOrigin=eyJpIjoiNzM2YmMyMmNhMDkzNGI0OGJmMmRhMGNjNzIwYjI3ODgiLCJwIjoiaiJ9 ) Enable Spring MVC's CORS-handling features ( https://shibboleth.atlassian.net/browse/IDP-1907?atlOrigin=eyJpIjoiNzM2YmMyMmNhMDkzNGI0OGJmMmRhMGNjNzIwYjI3ODgiLCJwIjoiaiJ9 )

Change By: Henri Mikkonen ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A1614c4a5-c89e-4edc-9421-990bd6ea85fd ) Resolution: Done Status: In Progress Resolved

( https://shibboleth.atlassian.net/browse/IDP-1907#add-comment?atlOrigin=eyJpIjoiNzM2YmMyMmNhMDkzNGI0OGJmMmRhMGNjNzIwYjI3ODgiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/IDP-1907#add-comment?atlOrigin=eyJpIjoiNzM2YmMyMmNhMDkzNGI0OGJmMmRhMGNjNzIwYjI3ODgiLCJwIjoiaiJ9 )

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#100197- sha1:81e38da )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20220317/bdb4ad0f/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-e5155942-6ab7-4504-9f37-3a1eb688ab31
Type: image/png
Size: 341 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220317/bdb4ad0f/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-5eb57dc1-f2f6-45cb-992d-d4a005c058c4
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220317/bdb4ad0f/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-ee956b61-fe12-4ee6-a27e-19241d3ee507
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220317/bdb4ad0f/attachment-0005.png>


More information about the commits mailing list