Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login page for access authorization #13

Closed
PreetamSing opened this issue Jul 26, 2023 · 4 comments
Closed

Login page for access authorization #13

PreetamSing opened this issue Jul 26, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@PreetamSing
Copy link
Contributor

  • I'm thinking about implementing this feature.
    And the best approach I can think of is user provides password to access this page. That password (not password hash) is set in configuration while middleware initializaiton, picked up from environment variable desirably.
    @okayshankha Do you have a better approach on your mind?
@okayshankha
Copy link
Owner

okayshankha commented Jul 26, 2023

Yes, this is the plan I'm primarily having as well. We can do something like the following.

const traceTrail = new TraceTrail('mongodb://localhost:27017/TraceTrail', {
   authorization: {
       username: String, // This value can be fetched from .env or some static value.
       password: String // This value can be fetched from .env or some static value.
   }
})

@PreetamSing
Copy link
Contributor Author

As we won't have multiple users or something like that, I think having username is just like making password lengthier for better security, for which we can just "make the password lengthier".

@okayshankha
Copy link
Owner

Yeah, this also works!

@okayshankha okayshankha added the enhancement New feature or request label Jul 30, 2023
@PreetamSing
Copy link
Contributor Author

#18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants