scorelab / OpenMF

An Open Source Mobile Forensics Investigation Tool for Android Platform
Apache License 2.0
150 stars 97 forks source link

Implemented token based authentication #85

Open amlannandy opened 3 years ago

amlannandy commented 3 years ago

Description

Login with react app doesn't persist the session in flask_login. So, we can return a auth token to the user on login. Which can be used in the Authorization header for accessing protected routes.

Fixes #84

Type of change

How Has This Been Tested?

Try using a protected route without login, using the auth token in header.

Test Configuration:

screen-capture (1)

Checklist: