[java-idp-oidc] branch main updated: JOIDC-145 - Remove scripted functions from the flow beans
Henri Mikkonen
henri.mikkonen at iki.fi
Fri Apr 7 11:03:40 UTC 2023
This is an automated email from the git hooks/post-receive script.
hjmikkon pushed a commit to branch main
in repository java-idp-oidc.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-oidc.git;a=commit;h=fc8718241439961b03c48527a210b4888e2e30f5
The following commit(s) were added to refs/heads/main by this push:
new fc871824 JOIDC-145 - Remove scripted functions from the flow beans
fc871824 is described below
commit fc8718241439961b03c48527a210b4888e2e30f5
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Fri Apr 7 14:02:52 2023 +0300
JOIDC-145 - Remove scripted functions from the flow beans
https://shibboleth.atlassian.net/browse/JOIDC-145
Changed scripted attribute into template in the example attribute-resolver.
---
.../oidc/op/conf/examples/oidc-attribute-resolver.xml | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/idp-oidc-extension-impl/src/main/resources/net/shibboleth/idp/plugin/oidc/op/conf/examples/oidc-attribute-resolver.xml b/idp-oidc-extension-impl/src/main/resources/net/shibboleth/idp/plugin/oidc/op/conf/examples/oidc-attribute-resolver.xml
index bab9f96a..22a353d0 100644
--- a/idp-oidc-extension-impl/src/main/resources/net/shibboleth/idp/plugin/oidc/op/conf/examples/oidc-attribute-resolver.xml
+++ b/idp-oidc-extension-impl/src/main/resources/net/shibboleth/idp/plugin/oidc/op/conf/examples/oidc-attribute-resolver.xml
@@ -93,17 +93,11 @@
This demonstrates a complex claim constructed by forming a JSON structure.
The default transcoding rule for the address claim expects such a structure.
-->
- <AttributeDefinition id="address" xsi:type="ScriptedAttribute">
+ <AttributeDefinition id="address" xsi:type="Template">
<InputDataConnector ref="staticAttributes" attributeNames="street_address locality region postal_code country"/>
- <Script>
- <![CDATA[
- address.addValue("{\"street_address\":\""+street_address.getValues().get(0) + "\","
- +"\"locality\":\""+locality.getValues().get(0) + "\","
- +"\"region\":\""+region.getValues().get(0) + "\","
- +"\"postal_code\":\""+postal_code.getValues().get(0) + "\","
- +"\"country\":\""+country.getValues().get(0) + "\"}");
- ]]>
- </Script>
+ <Template><![CDATA[
+ {"street_address":"${street_address}", "locality":"${locality}","region":"${region}","postal_code":"${postal_code}","country":"${country}" }
+ ]]></Template>
</AttributeDefinition>
<!--
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list