I think I managed to find the solution to your issue @gorgiselkov
I'm guessing you're using IIS but if not it might help as well.
Here: https://community.nodebb.org/post/72229
[nodebb-plugin-ns-login] NS Login
-
NodeBB: Login
Simple API endpoint for external login. Special use case: external login checks if user's credentials are valid.
I'm using it for validation of user existence and correctness of credentials, so I can provide necessary services around NodeBB.
This plugin does not add UI elements and creates very low overhead on start-up script.
Links
-
What is this supposed to be? Wasn't it already existed in the core?
-
@Firelad said:
Wasn't it already existed in the core?
Available for external use? Maybe, I didn't find.
-
@Nicolas do you mind giving an example how this plugin works? I make an ajax from an external application providing a username and password and i should be logged in?
-
Plugin checks login credentials. if they are correct, it will provide user object as a response. For example, I'm using this plugin for my external API.
By visiting
/api/ns/login
via POST, if credentials are correct, response will look likeThis plugin does not create any persistent sessions.
-
This post is deleted! -
@Nicolas would it be possible to modify your plugin to create a persistent session? if so, do you have any pointers for me to do so?
-
@julian any ideas?
-
any news on this? What @agarcia17 says is what i'm looking for.
-
@smendez-hi plugin was not designed to handle persistent sessions.
-
@Nicolas Ok, thanks. Then the only possible solution is Oauth2
-
Version 2.2.0
The new version is available.
Changelog:
- Add email as a login credential
-
@nicolas i has a external website, when access website i use ajax make request login 'api/ns/login'... i received object user . but i do not received notification at external website.
socket.uid at serve = 0.
can you help me ?
sorry if i write less english.