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

As an IM system it shall login an existing user #6

Open
greenlaw110 opened this issue Dec 14, 2017 · 0 comments
Open

As an IM system it shall login an existing user #6

greenlaw110 opened this issue Dec 14, 2017 · 0 comments
Assignees

Comments

@greenlaw110
Copy link
Contributor

1. Description

Provides a RESTful API for user login through HTTP(s). After the API called a authentication token shall be generated and respond back to caller.

1.1 Implementation

The system shall implement authentication token using JWT (JSON Web Token).

Note security concern applied to this API

2. Acceptance criteria

2.1 Normal path

  • Calling the endpoints with proper username/password shall respond with a JWT token
  • Use the JWT token to access other authenticated API shall not trigger 401 Unauthorized response

2.2 Invalid username/password

  • Calling the endpoints with invalid username/password combination shall get a response with 401 Unauthorized response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant