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

WP-543: Setup APCD API Client and integrate users endpoints #323

Open
wants to merge 5 commits into
base: feat/apcd-react-conversion
Choose a base branch
from

Conversation

chandra-tacc
Copy link
Contributor

Overview

Setup APCD API Client and integrate users endpoints

Related

Changes

  • Add a APCD_Token model
  • Add token retrieval on login signal
  • create api client utils for users endpoint
  • Use the users endpoint data in the backend (via a switch on settings flag).

Testing

  1. Get the secrets.py for TACC_APCD_API_KEY.
  2. Add the following to settings_local.py:
TACC_APCD_API_HOST = 'https://<hostname>
SWITCH_TO_API = True
  1. Setup your own database (to avoid running migrations in dev.apcd)
  • Get a dump of apcd dev database.
  • import the db into your local.
  • change DATABASES in secrets.py to your local database.
  1. make build and make start
  2. Run migrations
  3. localhost:8000/admin/login (if already logged in, go to localhost:8000/logout and then log back in).
  4. Go to Admin-> view users.

UI

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

Successfully merging this pull request may close these issues.

2 participants