mgroves / realworld-aspnet-couchbase

Conduit implementation: ASP.NET Core + Couchbase
https://realworld.io
MIT License
12 stars 4 forks source link

Authentication and Login endpoint #1

Open mgroves opened 1 year ago

mgroves commented 1 year ago

https://realworld-docs.netlify.app/docs/specs/backend-specs/endpoints

Authentication Header: You can read the authentication header from the headers of the request

Authorization: Token jwt.token.here

Authentication: POST /api/users/login

Example request body:

{
  "user":{
    "email": "jake@jake.jake",
    "password": "jakejake"
  }
}

No authentication required, returns a User

Required fields: email, password

mgroves commented 1 year ago

Got it working, but it's using "Authentication: Bearer {token}" instead of "Authentication: Token {token}"

Not sure how to change that (yet)

mgroves commented 1 year ago

The issue was mainly with Swashbuckle. It's working now.

Need to add test(s) and database functionality.

mgroves commented 1 year ago

Still need to add tests!

mgroves commented 1 year ago

Add tests first, then make sure to add validation.

mgroves commented 1 year ago

Unit tests and integration tests are in