TLDR: How do I create an application in the Solid spirit where standard users can connect pods to the app, and administrators can query these pods perpetually afterward in some unified way? As the Solid-OIDC documentation stands, I’m not sure how this is possible, if I’m meant to use tokens or write to the users profile, or alter the .acl lists.
An architecture-in-progress is below, how can I make it more granular with specific technologies? Or should I re-architect this app in some way to make more sense using Solid?
Hey Solid Community,
I’m trying to make an application with Solid that allows users to connect pods hosted by specified providers to it. App administrators should then be able to query the linked data stored at these pods in some unified way. (This is a proof of concept I’m doing for a University course)
An example use case of this application is at a credit risk assessment company. They may require users to sharing read access to pods offered by their financial institutions. Administrators can then easily query data from the user’s pods to quickly perform a provider agnostic risk assessment.
Thus I want this app to have the following two characteristics:
- A user should be able to grant the application persistent access to pods they have access to
- An administrator should be able to perform queries to all pods connected by users.
In my reading I’ve come across several parts of the ecosystem that would help me to this end, but I have been unable to bring them together into a comprehensive architecture that has really clicked in my head. In the preliminary architecture above I’ve sketched out the rough structure, but I am struggling on implementation details. How do I let admins query pods shared by users? Should I store OAuth tokens? How do I log users in differently to admins? etc. I’m basically not sure how all the jigsaw pieces fit together, or if I’m missing any pieces.
I would like any help possible on getting started creating this application as I am struggling to break ground and am getting a bit lost in design and piles of documentation. Below I’ll elaborate roughly about where my thoughts are so far, and answers to them would be dearly loved, however asking further questions that I haven’t thought of would also be appreciated. Screenshots of my application so far are using solid-ui-react to handle login/logout.
(1) User granting an application persistent access
A user should be able to login to an application as usual using their WebID. This is trivial using solid-ui-react.
From here users are able to connect pods, and view those they have already connected. This information will hopefully be displayed a screen roughly similar to the one below. (Hopefully it crystallises how the app should work for you. Users can connect pods from a list of “trusted” pod providers to ensure data is up-to-date and valid)
I am currently trying to work out how to persist application connections to pods between WebID login sessions. I have several questions:
- How do I create and serve a “Client ID” on my application? Where should I store/host this? (I think this is relevant to persistent permissions granting? But I may be wrong…)
- How do I maintain per pod connections between sessions in a way that any administrator of the application can query user data?
a. Learning about OAuth and Solid-OIDC recently has been interesting, but storing the OAuth token between sessions seems very much like the incorrect way to do things. Are there any suggestions as to how this could properly be done
(2) Administrator Pod Querying
- How would I structure the application to serve a different frontend for standard users than to administrators? This doesn’t have to be rigorous in terms of security as it is a proof of concept. Should I create a text file with administrator WebIDs in it, and serve a different frontend if the logged in WebID is equal to that?
- How should the app be architected such that any administrator can query the connected pods of any registered user?
Any thoughts on either of these subsections, or how I should structure this application overall would be greatly appreciated