Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 964 Bytes

README.md

File metadata and controls

51 lines (33 loc) · 964 Bytes

UIT Plus Extension for Tethys

Installation

  1. Conda install pyuit.
conda install -c erdc/label/dev -c conda-forge pyuit
  1. Install the extension.

    cd django-uit_plus_job
    python pip install -e .
  2. Register a new client on https://www.uitplus.hpc.mil. Set Return URL to http(s)://<yourtethysportal>/oauth2/complete/UITPlus/.

Note the generated client id and client secret to add to the Tethys configuration file.

  1. Add the following to the portal_config.yml file:
INSTALLED_APPS:
  - uit_plus_job

AUTHENTICATION_BACKENDS:
  - uit_plus_job.oauth2.UitPlusOAuth2

OAUTH_CONFIGS:
  SOCIAL_AUTH_UITPLUS_KEY: <client-id>
  SOCIAL_AUTH_UITPLUS_SECRET: <client-secret>
  1. Run migrations:

    tethys db migrate

Tests

. test.sh <path_to_tethys_manage.py>

CONDA BUILD

conda build -c erdc -c conda-forge conda.recipe