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

API keys / user maintenance fixes and additions #1485

Open
melange396 opened this issue Jun 25, 2024 · 0 comments
Open

API keys / user maintenance fixes and additions #1485

melange396 opened this issue Jun 25, 2024 · 0 comments
Labels
api keys related to authn/authz and access control bug enhancement javascript Pull requests that update Javascript code logs and monitoring logging, monitoring, alerting python Pull requests that update Python code refactor Substantial projects to make the code do the same thing, better. user experience things that affect users of our software or services

Comments

@melange396
Copy link
Collaborator

These are listed roughly in order of increasing difficulty/complexity:

Most of these tasks should be pretty straightforward except perhaps for adding the "active" column, which will need to be accounted for when looking up a key/user on API requests.

(Key deletion email text:)
EMAIL_SUBJECT = "Delphi Epidata API Key Inactivity Notice"

PREFIX = "Hello!\n\nYou previously registered with the Delphi Epidata API and received an API key.\n\n"

ALERT_EMAIL_MESSAGE = f"Your API Key has not been used in the past {INACTIVE_KEY_LIFETIME} months.  It is scheduled to be removed in one month if it remains inactive.  To renew it, simply use it again before then."

DELETED_EMAIL_MESSAGE = f"Your API Key was removed due to inactivity and will no longer work.  To obtain a new one, please visit our registration form at {API_KEY_REGISTRATION_FORM_LINK_LOCAL} ."

SUFFIX = "\n\n               For usage information, see the API Keys section of the documentation: https://cmu-delphi.github.io/delphi-epidata/api/api_keys.html \n\n               Best,\n               Delphi Team"
@melange396 melange396 added bug enhancement refactor Substantial projects to make the code do the same thing, better. javascript Pull requests that update Javascript code logs and monitoring logging, monitoring, alerting python Pull requests that update Python code user experience things that affect users of our software or services api keys related to authn/authz and access control labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api keys related to authn/authz and access control bug enhancement javascript Pull requests that update Javascript code logs and monitoring logging, monitoring, alerting python Pull requests that update Python code refactor Substantial projects to make the code do the same thing, better. user experience things that affect users of our software or services
Projects
None yet
Development

No branches or pull requests

1 participant