[JIRA] (IDP-1995) Add support for DateTimeAttributeValue to supporting classes

Rod Widdowson (Jira) jira at shibboleth.atlassian.net
Mon Aug 22 12:48:20 UTC 2022


Rod Widdowson ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=59fb32bbc24efb3c4ed3c977 ) *commented* on IDP-1995 ( https://shibboleth.atlassian.net/browse/IDP-1995?atlOrigin=eyJpIjoiZjgzZmU3ZTkzNzFjNDVkMDhhODQ4ZjBjYWIwNTZlMDkiLCJwIjoiaiJ9 )

Re: Add support for DateTimeAttributeValue to supporting classes ( https://shibboleth.atlassian.net/browse/IDP-1995?atlOrigin=eyJpIjoiZjgzZmU3ZTkzNzFjNDVkMDhhODQ4ZjBjYWIwNTZlMDkiLCJwIjoiaiJ9 )

Scripted Attribute resolver
---------------------------

Turns out we are safe (and documented as such). TL;DR if you call getValues() on an attribute inside the script context you *ONLY* get string values (not scoped, not datetime, not binary). The fine manual says as much too: “

As a convenience, values of type StringAttributeValue ( http://shibboleth.net/cgi-bin/java-idp.cgi/net.shibboleth.idp.attribute.StringAttributeValue ) are available as simple Strings, but all other IdPAttributeValue ( http://shibboleth.net/cgi-bin/java-idp.cgi/net.shibboleth.idp.attribute.IdPAttributeValue ) subtypes are only available as their native type since their underlying data can only be accessed natively.

So if you want to play with DateTime then you call getNativeAttributes()

Scripted Data Connector
-----------------------

Only deals with {{IdPAttribute}}s (and so the users owns all the issues)

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

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#100205- sha1:59a7aeb )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20220822/35e0f282/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-ae417790-f61a-410f-a369-adcad19ce15a
Type: image/png
Size: 452 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220822/35e0f282/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-db351bf9-237f-44fe-a70c-e90fcca5b12e
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220822/35e0f282/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-ebfa2fe2-2384-4cdc-b2e0-50da566ea213
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220822/35e0f282/attachment-0005.png>


More information about the commits mailing list