Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mws authentication #8596

Open
wants to merge 9 commits into
base: multi-wiki-support
Choose a base branch
from

Conversation

webplusai
Copy link
Contributor

No description provided.

Copy link

stackblitz bot commented Sep 12, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

Confirmed: webplusai has already signed the Contributor License Agreement (see contributing.md)

@Jermolene
Copy link
Member

Thank you @webplusai this is looking good. I will provide some detailed feedback shortly.

@joshuafontany
Copy link
Contributor

Following along (very busy at work atm, company is reorging... again). This is exciting stuff!

Copy link
Member

@Jermolene Jermolene left a comment

Choose a reason for hiding this comment

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

Thank you @webplusai this is looking good. There is what looks like some work-in-progress areas such as handleLogin. It makes a lot of sense to keep things simple there temporarily, and so I would like to merge this. However I think it may just be worth you adding comments to tag the TODO areas to make explicit the areas that we need to revisit.

<body>
<div class="login-container">
<h1>TiddlyWiki Login</h1>
<$set name="returnUrl" value={{{ [{$:/temp/mws/login/returnUrl}!is[blank]else{$:/info/url/query}split[returnUrl=]last[]else[/]] }}}>
Copy link
Member

Choose a reason for hiding this comment

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

Is $:/temp/mws/login/returnUrl intended as a debugging aid?

@@ -0,0 +1,9 @@
{
"title": "$:/plugins/tiddlywiki/authentication",
Copy link
Member

Choose a reason for hiding this comment

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

The tests are failing on my machine because of this error:


Failures:
1) Plugin tests every plugin should have the required standard fields plugin $:/plugins/tiddlywiki/authentication should have name, description and list fields

This can be fixed by adding to the plugin.info file (the fields ordering should match that of the main multiwikiserver plugin):

"name": "Multi Wiki Server Authentication",
"stability": "STABILITY_1_EXPERIMENTAL"

But in fact I do not think that we should introduce an additional plugin. The login page and any associated components can be packaged as part of the main MWS plugin under the namespace $:/plugins/multiwikiserver/auth/form/login.

Then we should break the form into subsidiary tiddlers that are transcluded by the login page. Users can then override those tiddlers to add their own heading/graphics etc.

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.

3 participants