The Service Admin Portal is an internal tool for investigating queries, searching users' accounts and activation keys, and for internal reporting.
There are two components to run locally:
- Admin service
- JWT Proxy
To run the service-admin service, you can use:
You should be able to use the "Launch" configuration to run the main app. Run the proxy using the instructions in the README.
Verify that "Go Modules integration" has been enabled in the GoLand IDE settings :
GoLand > Settings > Go > Go Modules > Enable Go Module Integrations
Run both the "JWT Proxy" and the "Admin Service" inside your IDE
Install go
.
go mod download # Install dependencies
go run cmd/admin/main.go
The following environment variables will need to be set:
Environment variable | Default |
---|---|
AWS_DYNAMODB_ENDPOINT |
http://localhost:8000 |
ADMIN_JWT_SIGNING_KEY_URL |
http://localhost:5000 |
AWS_ACCESS_KEY_ID |
devkey |
AWS_SECRET_ACCESS_KEY |
secretdevkey |
Run the proxy using the instructions in the README.
You will be able to access the admin service at http://localhost:5000
If you need to add a new user to the admin portal, this will need to be done within org-infra.
Within services/use-a-lasting-power-of-attorney/cognito_use_pool
find the locals block which contains the ual_admin_team_members
list.
Then add the new users email address to this list.
The user will recieve an email with their username and a tempoary password. Which will need to be reset upon first login.