Passwordless and token based authentication and authorization in Nodejs

Përfunduar Postuar 5 vite mё parё Paguhet në dorëzim
Përfunduar Paguhet në dorëzim

Asking for a efficient and simplified authentication and authorization library in express Nodejs. The module must use OTP for authentication and JWT for authorization to be used by a client API. The sequence of use is as follow:

1) Via HTTPS POST express API, user send email to ask for OTP.

2) An email with a 6 digit OTP valid for the current day is sent to the email provided.

3) Via HTTPS POST user send email and the OTP to be authenticated

4) If no valid ,return HTTP no authorized status with an error message. If valid, a JWT is generated and returned to the user in the response.

5) User can call other API that requires authorization with the JWT

Conditions:

- JWT can be valid for 1 month. Additional, any authorized request should validate with a callback provided that returns true or false even if JWT is valid. A false of that callback inmediately invalidates the JWT. JWT subject field must contain email.

- If DB if needed for storing the OTP , use Mongo. Recommended to use some algorithm that doesnt require storing, like using the current date for seed.

- The "ask otp" could return "no authorized" because email doesnt exist. But the logic of checking if email existe will be provided in a callback that returns true or false.

- if JWT is expired, return new JWT in a response field when doing any request.

- When using Authenticate email and OTP, if successful, OTP is invalidated and a new JWT is generated

- API function list:

Ask OTP : Return OTP or no authorized send to the email

Authenticate email and OTP: return new JWT or no authorized.

Logout: Invalidate a JWT or no authorized.

- Keep module dependencies to a minimum.

- Well documented code.

Provided a sample API call that requires to be authorized with a valid JWT

Express JS JavaScript MongoDB Node.js

ID Projekti: #18313631

Rreth projektit

13 propozimet Projekti në distancë Aktiv 5 vite mё parё

Është zgjedhur fitues:

billinhit

Hi, I am a mean stack developer. I am strong on Angular/nodejs/.mongod. Your requirement is very detail. The following is my suggestions: - For sending email: Using Nodemailer. - About OTP: we should store in DB, t Më shumë

$150 USD për 3 ditë
(4 Përshtypje)
3.2

13 profesionistë freelancer dërguan një ofertë mesatare prej $210 për këtë punë

sapotacorp

Dear isaaky! Thanks for giving me the opportunity to discuss your project. Best regards,

$250 USD për 4 ditë
(46 Përshtypje)
6.4
KashirinA

Hello. I have read your project descriptions. I have many experience in node, express.js. and passport using jwt or anothers. lets discuss more details via chat. Thank you.

$155 USD për 3 ditë
(33 Përshtypje)
5.7
amitasharma91

Hello, I see that you are looking for an experienced developer. Due to my education and work experience in the sphere of web development, I have the ability to create nodejs application. With my previous experienc Më shumë

$166 USD për 2 ditë
(2 Përshtypje)
3.5
amiinnee

Hi I'm a Full stack javascript developer with 5 years of experience working with the following Javascript frameworks frontEnd : VueJs Vuex AngularJs Angular Ngrx Backend : ExpressJs SailsJs HapiJs NestJs Fee Më shumë

$222 USD për 3 ditë
(9 Përshtypje)
3.3
jk901

Dear As I am mobile and web expert, have rich experience with web site and application development If you are interested with my proposal, please let me know it. I hope to work with you on this project. T Më shumë

$400 USD për 7 ditë
(4 Përshtypje)
2.4
DragonColumn

Hi, I am experienced nodejs but also mongo. I developed a program which synchronize mongodb with mysql db. I also developed a web application using nodejs express. I can satisfy your need. Thank you.

$200 USD për 3 ditë
(3 Përshtypje)
1.6
arcsoft16

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have Më shumë

$238 USD për 7 ditë
(0 Përshtypje)
0.0
osamaejaz1234

I have already done similar kind of work. I will be doing this project within 3 days with the requirements. Relevant Skills and Experience Created some apps with same requirements.

$155 USD për 3 ditë
(0 Përshtypje)
0.0
mkarcioglu

Hi. I already finished your project. It's fully functional right now. I've added a pdf file to my portfolio as a proof. If we deal, i will write a readme file as a documentation and if you wish, i can write unit tests Më shumë

$166 USD për 1 ditë
(0 Përshtypje)
0.0