How disable general local login strategy
-
Not yet, but for now you can do this by hiding the routes for
POST /login
and/register
, and also by removing the local login elements from thelogin.tpl
as well.Perhaps we can add a toggle to remove local logins in the forum settings... @baris, what do you think?
-
To disable the local login, must I remove the routes for /login und /register? What do you mean 'hiding' @julian ? Or just fork and modify the theme, e.g., remove login.tpl and link in the menu.tpl?
If so, which theme should I modify? Will the templates in the lavanda overwrite those of in the vanilla? -
You can comment out these lines, and also these lines
I thought about adding an option to toggle turning on and off the login routing and template, but I'm afraid it would be too easy to lock yourself out if your SSO login stopped working altogether.
-
@julian Is it possible to just add a toggle in the plugin's admin page and works only for this plugin. If the oauth2 server is down, just remove the plugins temporarily. I have a doubt whether NodeBB has already a safe mode start, this means starting without all the plugins ?
-
@kevinprotoss That's a good point -- we do, actually.
./nodebb reset
will disable all plugins and reset the theme to vanilla. We can easily extend this to also re-enable local logins as well.Okay, let's make it an issue.