This repository has been archived by the owner on Mar 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
auth #7
Comments
grounded042
pushed a commit
that referenced
this issue
Nov 28, 2015
moving into production mode here where SQL changes need to be non-breaking moving forward. From now on you should NEVER need to drop the public schema to apply new DB changes. The new tables are for #7
grounded042
pushed a commit
that referenced
this issue
Nov 28, 2015
to "opt into" auth, a handler will have to handle this. The middleware for auth will check for a token and if a token is present, validate it. If the token is valid, the user id will be added to the context as |
grounded042
pushed a commit
that referenced
this issue
Nov 28, 2015
handlers will need to opt into this by checking for `UserId` from context. For #7
grounded042
pushed a commit
that referenced
this issue
Nov 28, 2015
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For the admin panel, we need authentication. This will be handled via JWT. To incorporate this, we will need several endpoints with corresponding logic and SQL tables.
/auth/token
- refresh a current token. Hit this endpoint with a valid token and you will receive a new, valid token./auth/token
- login. User credentials are sent here and a valid JWT is returned to be used in all requests that need authentication./auth/token
- logout. Hit this endpoint with a valid token, and your token will be marked as invalid.user_id
email
first_name
last_name
created_at
updated_at
user_login_id
fk_user_id
salt
password
created_at
updated_at
The text was updated successfully, but these errors were encountered: