Ok, the problem was solved. But I'm not sure how exactly.
After I wrote this post I noticed that the latest version of NodeBB is 1.16.x. But while upgrading the forum i switched to 1.15.x branch (I thought that was the latest).
After that, I used ./nodebb upgrade command. Maybe this was the issue? Maybe, I switched to the previous version branch, but installed the latest version of files with the "upgrade" command? — I don't really know. But when I switched to 1.16.x and upgraded the forum again, then it worked as expected. The forum now works fine.
How do you disable default login/registration and enable on login/registration through SSO plugin.
-
You can disable normal registration in the ACP. Hiding the normal login is dangerous because you could lose access the ACP entirely, though.
-
You could hide the normal login field with custom CSS:
.page-login .login-block { display: none; }
But then if the SSO goes down you can't log in within personally changing the CSS for yourself.
Edit: you could then put this in your custom JS:
$(window).on('load action:ajaxify.end', function () { if (app.user.isAdmin) { $('.page-login .login-block').show(); } });
which would show admins the normal login fields as well.
-
@pitaj said in How do you disable default login/registration and enable on login/registration through SSO plugin.:
You could hide the normal login field with custom CSS:
.page-login .login-block { display: none; }
But then if the SSO goes down you can't log in within personally changing the CSS for yourself.
Edit: you could then put this in your custom JS:
$(window).on('load action:ajaxify.end', function () { if (app.user.isAdmin) { $('.page-login .login-block').show(); } });
which would show admins the normal login fields as well.
Does this disable the original method of creating an account? Can I ensure it is not possible to create an account without sso?
-
You should be able to disable registration in the ACP. That will still allow SSO.
Edit: previous discussion
https://community.nodebb.org/topic/11381/user-registration-only-with-sso