[JIRA] (JOIDC-85) Submission: LocalDynamicClientInformationResolver

Simone Avogadro (Jira) jira at shibboleth.atlassian.net
Fri Mar 25 18:28:33 UTC 2022


Simone Avogadro ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A60a84ee1-4961-471b-99d8-f67c05e24403 ) *created* an issue

IdP Plugin - OIDC OP ( https://shibboleth.atlassian.net/browse/JOIDC?atlOrigin=eyJpIjoiMzU3NmUzY2FmMjY4NDUwZDhiMjhkNjZhMzlkMDhkODciLCJwIjoiaiJ9 ) / New Feature ( https://shibboleth.atlassian.net/browse/JOIDC-85?atlOrigin=eyJpIjoiMzU3NmUzY2FmMjY4NDUwZDhiMjhkNjZhMzlkMDhkODciLCJwIjoiaiJ9 ) JOIDC-85 ( https://shibboleth.atlassian.net/browse/JOIDC-85?atlOrigin=eyJpIjoiMzU3NmUzY2FmMjY4NDUwZDhiMjhkNjZhMzlkMDhkODciLCJwIjoiaiJ9 ) Submission: LocalDynamicClientInformationResolver ( https://shibboleth.atlassian.net/browse/JOIDC-85?atlOrigin=eyJpIjoiMzU3NmUzY2FmMjY4NDUwZDhiMjhkNjZhMzlkMDhkODciLCJwIjoiaiJ9 )

Issue Type: New Feature Affects Versions: 3.0.4 Assignee: Henri Mikkonen ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A1614c4a5-c89e-4edc-9421-990bd6ea85fd ) Attachments: LocalDynamicClientInformationResolver.java Created: 25/Mar/22 2:28 PM Priority: Trivial Reporter: Simone Avogadro ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A60a84ee1-4961-471b-99d8-f67c05e24403 )

Here attached is our implementation for a LocalDynamicClientInformationResolver which mimics the behaviour of the LocalDynamicMetadataProvider by allowing to place the RP metadata within a local folder and naming it according to the <sha-1(rp.client_id)>.json format

The main limitations are:

* it’s an adaptation on top of the FilesystemClientInformationResolver
* it does not perform garbage collection: unused/expired/deleted entries will stay there until anyone tries to access them

Here’s an example configuration:

<!-- 'metadata' must point to a folder, files will be searched in SHA-1 in the same folder as <SHA-1(ClientID)>.json -->
<bean id="DynamicFileResolver" class="com.mindmercatis.shibboleth.oidc.metadata.LocalDynamicClientInformationResolver"
   c:metadata="%{idp.home}/conf/dynamic-metadata-oidc/"
   p:maxCacheDuration="PT5M" 
   />

The file has the Apache 2.0 standard license header. We left the reference to Mind-Mercatis but obviously please replace it as needed

( https://shibboleth.atlassian.net/browse/JOIDC-85#add-comment?atlOrigin=eyJpIjoiMzU3NmUzY2FmMjY4NDUwZDhiMjhkNjZhMzlkMDhkODciLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/JOIDC-85#add-comment?atlOrigin=eyJpIjoiMzU3NmUzY2FmMjY4NDUwZDhiMjhkNjZhMzlkMDhkODciLCJwIjoiaiJ9 )

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:46df9a5 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20220325/1e03f48d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-7d3a83e5-0a4c-4ed6-bfde-e33db02a6688
Type: image/png
Size: 341 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220325/1e03f48d/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-a34ec4d1-4a1e-42c4-b4f8-357ad2d1369e
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220325/1e03f48d/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-trivial-800c8123-7846-4eac-8b5f-9b6a8d5fabad
Type: image/png
Size: 563 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220325/1e03f48d/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-1bac138d-e05d-4fc5-bd78-2763cef2cb67
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220325/1e03f48d/attachment-0007.png>


More information about the commits mailing list