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

[NEW] Implement HTTP Session Authentication #7

Closed
ybkuroki opened this issue May 5, 2020 · 0 comments · Fixed by #21
Closed

[NEW] Implement HTTP Session Authentication #7

ybkuroki opened this issue May 5, 2020 · 0 comments · Fixed by #21
Assignees
Labels
enhancement New feature or request

Comments

@ybkuroki
Copy link
Owner

ybkuroki commented May 5, 2020

Purpose

To allow only authorized users to see book datas.

Expected behavior

  • Some users can login or logout by using username and password.

How to deal with this issue

Implement the following method.

  • Implement session management using echo-session library.
  • Implement authentication function.
    • Login Rest API
      • Authenticate using username and password.
      • Check authority of login user.
      • Create session id and set cookie session id.
    • Logout Rest API
      • Remove session and cookie.
    • Validate session id in the each request.
      • Implement using echo's middleware.

References

@ybkuroki ybkuroki added the enhancement New feature or request label May 5, 2020
@ybkuroki ybkuroki self-assigned this May 5, 2020
ybkuroki added a commit that referenced this issue Jul 5, 2020
ybkuroki added a commit that referenced this issue Jul 12, 2020
ybkuroki added a commit that referenced this issue Jul 18, 2020
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

Successfully merging a pull request may close this issue.

1 participant