Skip to content

fix: Rename & adapt to CSS - #447

Merged
jaxoncreed merged 1 commit into
feat/idp-architecture-refactorfrom
feat/idp-architecture-refactor-bis
Dec 30, 2020
Merged

jaxoncreed merged 1 commit into
feat/idp-architecture-refactorfrom
feat/idp-architecture-refactor-bis

Conversation

@matthieubosquet

Copy link
Copy Markdown
Contributor

No description provided.

"EmailPasswordIdentityProviderHandler:_args_oidcProviderFactory": {
"@id": "urn:solid-server:default:OidcProviderFactory"
"EmailPasswordIdentityProviderHandler:_args_solidIdentityProviderFactory": {
"@id": "urn:solid-server:default:SolidIdentityProviderFactory"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why did you change this parameter name to "SolidIdenityProviderFactory." It doesn't necessarily need to be a SolidIdentityProvider, it could be an IdentityProvider


interface EmailPasswordIdentityProviderHandlerArgs {
oidcProviderFactory: OidcProviderFactory;
solidIdentityProviderFactory: SolidIdentityProviderFactory;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not sure that I understand the reasoning behind the name changes. A generic OIDCProviderFactory should be what is passed in. Not specifically a SolidIdentityProvider factory.


export class SolidOidcProvider extends OidcProvider {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

By eleminating "OidcProvider" there is now not a generic term to describe a "Provider" that has a "handle" function. Though I do like the idea of using Provider implements AsyncHander<HttpHandlerInput> instead of what I did.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

When and if we need to create alternative Identity providers, they can easily implement AsyncHandler and if other identity providers were to be implemented, I'm not too sure why they should be extending Panva's Provider.

@matthieubosquet

Copy link
Copy Markdown
Contributor Author

I'll answer all comments at once since they revolve around the same issue of a generic OidcProvider vs a specific SolidIdentityProvider.

In the context of the CSS, the reason to pass in something that would not be a SolidIdentityProvider would be when adopting the broker pattern. The broker pattern is out of scope for now. In any case if we had a more generic IdentityProvider class, it should probably not extend Panva's and it is also very possible that when and if that happens, at the DI level, the IdentityProviders passed in will still need to conform to the Solid Identity requirements. For now, I just don't see the need for those extra classes. But I might be missing something.

@jaxoncreed

Copy link
Copy Markdown
Contributor

Okay seems fine

@jaxoncreed
jaxoncreed merged commit 85d4bf5 into feat/idp-architecture-refactor Dec 30, 2020
@matthieubosquet
matthieubosquet deleted the feat/idp-architecture-refactor-bis branch December 30, 2020 21:32
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.

2 participants