Repository navigation
Add identity provider - #455
Conversation
f4d52ff to
cbe3c27
Compare
513d754 to
27a5711
Compare
011c0e5 to
35beff2
Compare
RubenVerborgh
left a comment
There was a problem hiding this comment.
Hi, here's my first batch of comments.
Importantly, all classes and interfaces will need TSdoc; we need to understand what every class does.
RubenVerborgh
left a comment
There was a problem hiding this comment.
Various comments, structurally mainly:
- do we need all the factories?
- do we need GET and POST handlers, or can we just have everything as a controller?
| * A simple key value interface that's used in non-LDP related | ||
| * storage classes | ||
| */ | ||
| export interface KeyValueStore { |
There was a problem hiding this comment.
Note: we have such a store now, I believe. @joachimvh?
There was a problem hiding this comment.
I think @joachimvh wanted to replace that, so I'll leave this task to him.
| /** | ||
| * A KeyValueStore that wraps a provided ResourceStore | ||
| */ | ||
| export class PassthroughKeyValueStore implements KeyValueStore { |
There was a problem hiding this comment.
| export class PassthroughKeyValueStore implements KeyValueStore { | |
| export class KeyValueResourceStore implements KeyValueStore { |
There was a problem hiding this comment.
Again, I disagree. This is not a ResourceStore. It's a Key Value Store. Calling it a ResourceStore is false advertising.
| * An IdP storage adapter that uses a ResourceStore | ||
| * to persist data. | ||
| */ | ||
| export class ResourceStoreStorageAdapter implements Adapter { |
There was a problem hiding this comment.
| export class ResourceStoreStorageAdapter implements Adapter { | |
| export class IdpResourceStore implements Adapter { |
There was a problem hiding this comment.
Again, I disagree. This is not a ResourceStore. It's a storage adapter. Calling it a ResourceStore is false advertising.
| private readonly getHandler: HttpHandler; | ||
| private readonly postHandler: HttpHandler; |
There was a problem hiding this comment.
Shall we just make this an abstract class, where handleGet and handlePost are methods?
There was a problem hiding this comment.
Ah, but RenderEjsHandler below might prove me wrong then. Or maybe not; this can just be a helper function then.
0d38a17 to
e71b5b6
Compare
9d34ab3 to
0e2bf08
Compare
|
Updated the CI to also run for PRs going into this branch (I think). Should remove that part before merging into main. The CI now succeeds on this branch. This did require some changes though:
15.0 could be added by still running the build script after running I don't think there's an easy fix to still support 14.0 in the CI though. We actually do support that version as everything still works in the browser, it's just the node version of the |
That's acceptable, let's just find the minimum 14.x version that works. |
* Logs in with solid oidc * Refactored Provider * Attempt to hook up dependencies * Partial wiring of oidc provider components * IdP networking now works with architecture * Interaction Handlers Set Up * fix: Rename & adapt to CSS * Included Login Interaction * Refactored architecture to bind Interaction Policy to HttpHandlers Co-authored-by: Matthieu Bosquet <[email protected]>
7e976a7 to
895cbde
Compare
010607a to
bad8bc8
Compare
RubenVerborgh
left a comment
There was a problem hiding this comment.
Excellent work on this major feature. Thank you all!
|
Shall we also create issues for missing functionality like the client id? |
Created #718. I think that's the only one still needed unless @matthieubosquet knows of some more. |
| "@graph": [ | ||
| { | ||
| "comment": "This value can be used to set up an actual e-mail client", | ||
| "comment": "The default configuration does not contain credentials for an email client. In production systems, you likely want to set up your own.", |
There was a problem hiding this comment.
I'm assuming this will not result in a crash? So it will just log an error that the email cannot be sent? Or will it crash?
There was a problem hiding this comment.
Somewhere in between. It will throw an error, but the only time this is used is on the "forgot password" page, of which the handler already catches all errors. So this will result in an error being displayed on that page when the submit button is pressed.
|
Are all of the templates injection-proof? That is, if I inject (Whether or not the values are constrained beforehand is another matter; I just want to check that all templates will produce correct HTML regardless of the input given to them.) |
I actually had no idea so I added a unit test for that. The |
a2b153e to
f1cc3bf
Compare
# Conflicts: # test/integration/ServerFetch.test.ts # test/unit/init/CliRunner.test.ts # test/util/TestHelpers.ts # test/util/Util.ts
|
All the comments above should be covered, and the branch is up to date with the main branch and all tests succeed, so as far as I'm concerned a (squash) merge should finally be possible. |
|
Yeah let's go! |
Architecture:
https://lucid.app/lucidchart/invitations/accept/d6d776a7-89f7-4fce-ace7-3dd7a7d7d91e