Applying Security in NodeJS pages

Where can I find the updated documentation for applying security to NodeJS in Login and Logout ?

You should be able to get the basics set up with this:
https://docsdev.wappler.io/guides/applying-security-to-your-nodejs-pages

Is the documentation up to date?

I don’t think anything has changed since it was put together for Server-Side security protection on NodeJS.

For log in/out, it might have changed slightly in that the Security Provider is found and set up under Globals per target (rather than a step in your Server Connect API file) but the options look the same. The process is generally as in the docs. Have a go - if you get stuck let us know I/someone will usually help pretty quickly.

Just remember NodeJS doesn’t have support for Argon so use the SHA512 hashing algorithm and do not tick the ‘use password hash verify’ option in the Security Provider properties.

Basically, the text is correct, the images are from a previous era.

To explain, there is now a Globals section where you can setup the database connection and the security providers.
image

Then there is the API section that used to be called Server Actions

Because of the Globals section, we no longer need to add the database connection or security providers to the API steps. Here you see how the database connection is part of the databse query.

That’s about it regarding the changes.

Thanks for you, I’m will triying to do.

Hi Ben
I’m setting a NodeJS site a back-end section composed of a few pages
I need to create a protection with entry password but for a single user.
Do you know if you exist for Wappler a tutorial for a simplified as much as possible procedure?

Please check the docs explaining this: