StorageService: how to read/store a collection of records

Misagh Moayyed mmoayyed at unicon.net
Tue Dec 22 11:14:26 EST 2015


Reviewing the StorageService interface, I am trying to find a way to read
a collection of records. Here is the use case:

 

For OIDC, I intend to delegate the management and storage of Oauth tokens
(refresh/access) to the storage service. For this to work, I need to find
a way to retrieve a collection of tokens that are persisted by the service
and do additional processing on them. Of the current impls, I only see the
JPA variant doing something like this, specific to that implementation.
The contract seems to not specify a way to do this as far as I can tell. 

 

So what is the appropriate way to do this sort of thing? 

 

My other option would be to skip the storage service API completely, and
rely on a JPA backend of my own, handle schema changes and so on
independent of the idp itself. This is something that mitreid connect does
by default, and I am wondering if I should go that route if it makes
things easier in the long run both for dev and management purposes of the
token. 

 

Misagh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20151222/2a10c05c/attachment.html>


More information about the dev mailing list