Skip to content

Combine pod creation with IDP registration - #749

Merged
jvherweg merged 9 commits into
mainfrom
feat/idp-pods
Jun 1, 2021
Merged

jvherweg merged 9 commits into
mainfrom
feat/idp-pods

Conversation

@jvherweg

@jvherweg jvherweg commented May 31, 2021 •

Copy link
Copy Markdown
Member

Closes #740 .

Main behaviour is explained in the issue. Registration link is /idp/register. The UI of the registration form is still pretty basic.

Other things that got added in this PR:

  • IDP URLs no longer contain the UID of the session.
  • The registration component is no longer part of the session loop (meaning you don't get logged in when registering).
  • When verifying ownership of a WebID (by having the owner add a specific triple), we no longer check if <> solid:oidcIssuer $OUR_SERVER is present. Now we just remind the user to add that triple after registering.
  • This is now the only way to create pods (the HTTP interface at /pods got removed).

Possible future changes, input appreciated for some:

  • It might make sense to move the pod src folder into the identity folder (the config folder already got moved).
  • This class (and probably all the other IDP handlers probably) should be split up in 3 parts: one for parsing the input, one for handling the behaviour, and one for returning the output. The one issue is that they all require different input/output types, so either the handling of that should be very generic (input/output of Dict<string/any> objects), or we should create separate input/output classes for each handler.
  • We could send a mail containing all the info we show after registering as well.
  • Dynamic pods are not yet supported in this registration form (but you can do a POST with the correct params). This would require a different handler for the frontend that can show al the possible templates.
  • If we want to have e-mail verification, we need to add a deletePod function to the pod managers (so we can delete the pod if it doesn't get verified). The only generic way to support this is to recursively iterate over all resources in a pod and delete them individually.
  • Some pod manager behaviour can be generalized between the two we currently have.

Some of the above notes might still get added to this PR, others might become issues. Depends on potential input and how easy it is to add them.

@RubenVerborgh RubenVerborgh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YEAH!

Comment thread config/http/README.md Resolved
Comment thread config/identity/README.md Resolved
Comment thread config/identity/README.md Resolved
"comment": [
"DO NOT USE IN PRODUCTION, ONLY FOR DEVELOPMENT, TESTING, OR DEBUGGING.",
"Do no verification to determine WebID ownership."
],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this comment style for such cases.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well you should since it's you who suggested it 😂

Comment thread config/identity/ownership/token.json Resolved
Comment thread config/ldp/README.md Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Link pod creation and IDP

2 participants