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

Authentication with drf: jwt and socialapps #13

Open
Virako opened this issue Dec 27, 2018 · 2 comments
Open

Authentication with drf: jwt and socialapps #13

Virako opened this issue Dec 27, 2018 · 2 comments
Assignees
Milestone

Comments

@Virako
Copy link
Member

Virako commented Dec 27, 2018

The authentication should work by API. For example:

  • auth/login/

With params, we should look at user in DB and create/return user Token.

params: {
  "email": valid_email,
  "password": pwd
}

return: {
  "token": token
}
  • auth/register/

With params, we should create an user in DB, and create user Token for return it.

params: {
  "email": valid_email,
  "password": pwd
}

return: {
  "token": token
}
  • auth/logout/

Call logout with token in headers should remove current Token.

headers: {
  "token": valid_token
}

return: "logout success"

When authentication is done, we need to change every tests where we are authenticated.

@Virako Virako added this to the v1 milestone Dec 27, 2018
@Virako
Copy link
Member Author

Virako commented Dec 28, 2018

Currently, socializa-api use social/token/ api for obtain token.

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

No branches or pull requests

1 participant