[JIRA] (JOIDC-133) Allow customization for mappedErrors of OP flows
Henri Mikkonen (Jira)
jira at shibboleth.atlassian.net
Fri Nov 11 08:02:26 UTC 2022
Henri Mikkonen ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A1614c4a5-c89e-4edc-9421-990bd6ea85fd ) *commented* on JOIDC-133 ( https://shibboleth.atlassian.net/browse/JOIDC-133?atlOrigin=eyJpIjoiY2Q4ZWY1MmNiNmE5NGMzYTlkMmMwZjUwNjBjYTdkN2UiLCJwIjoiaiJ9 )
Re: Allow customization for mappedErrors of OP flows ( https://shibboleth.atlassian.net/browse/JOIDC-133?atlOrigin=eyJpIjoiY2Q4ZWY1MmNiNmE5NGMzYTlkMmMwZjUwNjBjYTdkN2UiLCJwIjoiaiJ9 )
Added three new global beans:
* *shibboleth.oidc.authorize.DefaultMappedErrors*
* mapped by default to oidc/authorize
* *shibboleth.oidc.register.DefaultMappedErrors*
* mapped by default to oidc/register
* *shibboleth.oidc.DefaultApiMappedErrors*
* mapped by default to oauth2/introspection , oauth2/revocation , oidc/token and oidc/userinfo
One can override the mappings per flow via defining the following beans:
* *shibboleth.oauth2.introspection.MappedErrors*
* *shibboleth.oauth2.revocation.MappedErrors*
* *shibboleth.oidc.authorize.MappedErrors*
* *shibboleth.oidc.register.MappedErrors*
* *shibboleth.oidc.token.MappedErrors*
* *shibboleth.oidc.userinfo.MappedErrors*
The following example defines custom mappings for the authorize-flow. It complements (see merge="true" in the map definition) the default mappings with one additional entry:
<bean id="shibboleth.oidc.authorize.MappedErrors"
parent="shibboleth.oidc.authorize.DefaultMappedErrors"
class="org.springframework.beans.factory.config.MapFactoryBean">
<property name="sourceMap">
<map merge="true" value-type="com.nimbusds.oauth2.sdk.ErrorObject">
<entry key="CustomEventId"
value="#{T(com.nimbusds.oauth2.sdk.OAuth2Error).INVALID_REQUEST}" />
</map>
</property>
</bean>
( https://shibboleth.atlassian.net/browse/JOIDC-133#add-comment?atlOrigin=eyJpIjoiY2Q4ZWY1MmNiNmE5NGMzYTlkMmMwZjUwNjBjYTdkN2UiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/JOIDC-133#add-comment?atlOrigin=eyJpIjoiY2Q4ZWY1MmNiNmE5NGMzYTlkMmMwZjUwNjBjYTdkN2UiLCJwIjoiaiJ9 )
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#100210- sha1:583150f )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20221111/42931e90/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-e4ecef6d-ced4-4c5f-aab0-2e74bb1a494f
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20221111/42931e90/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-e55b5f29-ce0f-4410-8241-a83cb65f0b33
Type: image/png
Size: 457 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20221111/42931e90/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-cdd0ce41-8a15-4000-9fac-7f29cdc18ad0
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20221111/42931e90/attachment-0005.png>
More information about the commits
mailing list