-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Split up IDP HTML, routing, and handler behaviour
- Loading branch information
Showing
45 changed files
with
1,012 additions
and
715 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
config/identity/handler/interaction/routes/existing-login.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^2.0.0/components/context.jsonld", | ||
"@graph": [ | ||
{ | ||
"comment": "Handles the interaction that occurs when a logged in user wants to authenticate with a new app.", | ||
"@id": "urn:solid-server:auth:password:ExistingLoginRoute", | ||
"@type": "RelativeInteractionRoute", | ||
"base": { "@id": "urn:solid-server:default:variable:baseUrl" }, | ||
"relativePath": "/idp/consent/", | ||
"source": { | ||
"@type": "ExistingLoginHandler", | ||
"interactionCompleter": { "@type": "BaseInteractionCompleter" } | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^2.0.0/components/context.jsonld", | ||
"@graph": [ | ||
{ | ||
"comment": "Handles OIDC redirects containing a prompt, such as login or consent.", | ||
"@id": "urn:solid-server:auth:password:PromptRoute", | ||
"@type": "RelativeInteractionRoute", | ||
"base": { "@id": "urn:solid-server:default:variable:baseUrl" }, | ||
"relativePath": "/idp/", | ||
"source": { | ||
"@type": "PromptHandler", | ||
"promptRoutes": [ | ||
{ | ||
"PromptHandler:_promptRoutes_key": "login", | ||
"PromptHandler:_promptRoutes_value": { "@id": "urn:solid-server:auth:password:LoginRoute" } | ||
}, | ||
{ | ||
"PromptHandler:_promptRoutes_key": "consent", | ||
"PromptHandler:_promptRoutes_value": { "@id": "urn:solid-server:auth:password:ExistingLoginRoute" } | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
18 changes: 5 additions & 13 deletions
18
config/identity/handler/interaction/routes/reset-password.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^2.0.0/components/context.jsonld", | ||
"@graph": [ | ||
{ | ||
"@id": "urn:solid-server:auth:password:ControlHandler", | ||
"@type": "ControlHandler", | ||
"controls": [ | ||
{ | ||
"ControlHandler:_controls_key": "login", | ||
"ControlHandler:_controls_value": { "@id": "urn:solid-server:auth:password:LoginRoute" } | ||
}, | ||
{ | ||
"ControlHandler:_controls_key": "forgotPassword", | ||
"ControlHandler:_controls_value": { "@id": "urn:solid-server:auth:password:ForgotPasswordRoute" } | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^2.0.0/components/context.jsonld", | ||
"@graph": [ | ||
{ | ||
"@id": "urn:solid-server:auth:password:HtmlViewHandler", | ||
"@type": "HtmlViewHandler", | ||
"templateEngine": { | ||
"comment": "Renders the specific page and embeds it into the main HTML body.", | ||
"@type": "ChainedTemplateEngine", | ||
"renderedName": "htmlBody", | ||
"engines": [ | ||
{ | ||
"comment": "Will be called with specific templates to generate HTML snippets.", | ||
"@type": "EjsTemplateEngine" | ||
}, | ||
{ | ||
"comment": "Will embed the result of the first engine into the main HTML template.", | ||
"@type": "EjsTemplateEngine", | ||
"template": "@css:templates/main.html.ejs" | ||
} | ||
] | ||
}, | ||
"templates": [ | ||
{ | ||
"HtmlViewHandler:_templates_key": "@css:templates/identity/email-password/login.html.ejs", | ||
"HtmlViewHandler:_templates_value": { "@id": "urn:solid-server:auth:password:LoginRoute" } | ||
}, | ||
{ | ||
"HtmlViewHandler:_templates_key": "@css:templates/identity/email-password/consent.html.ejs", | ||
"HtmlViewHandler:_templates_value": { "@id": "urn:solid-server:auth:password:ExistingLoginRoute" } | ||
}, | ||
{ | ||
"HtmlViewHandler:_templates_key": "@css:templates/identity/email-password/forgot-password.html.ejs", | ||
"HtmlViewHandler:_templates_value": { "@id": "urn:solid-server:auth:password:ForgotPasswordRoute" } | ||
}, | ||
{ | ||
"HtmlViewHandler:_templates_key": "@css:templates/identity/email-password/reset-password.html.ejs", | ||
"HtmlViewHandler:_templates_value": { "@id": "urn:solid-server:auth:password:ResetPasswordRoute" } | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.