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

Allow administrator to manage API Key #251

Open
RignonNoel opened this issue Jul 23, 2020 · 1 comment
Open

Allow administrator to manage API Key #251

RignonNoel opened this issue Jul 23, 2020 · 1 comment

Comments

@RignonNoel
Copy link
Contributor

Expected behavior

  • Administrators can generate API KEYS to allow them to script some actions with Volontaria (ex.: creating all the Events for next year from a XSLX file they maintain in intern)

Current behavior

  • User can use the API of Volontaria directly but they can't create new API Key to separate their usage and secure their permissions
  • If user logout and login he needs to change his API KEY everywhere

Potential solution

  • Create a new model ApplicationKey who contain:
    • A CharField name to help administrators manage their API KEYS
    • A CharField key that is auto-generated on creation
    • A DatetimeField created_at to help administrators manage their API KEYS
    • A DatetimeField last_used_at to help administrators manage their API KEYS
  • Overwrite authentication system to allow usage of the API KEYS
  • Each time the API KEYS is used, update the API KEY last usage
@Vardane
Copy link
Contributor

Vardane commented Dec 19, 2020

Starting work on this issue as discussed.

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

2 participants