Closed Bug 1563222 Opened 6 years ago Closed 6 years ago

make oidcprovider work better in local dev environment

Categories

(Socorro :: Webapp, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: jwhitlock)

Details

Attachments

(3 files)

In this issue:

https://github.com/mozilla-parsys/docker-test-mozilla-django-oidc/issues/4#issuecomment-507897088

John suggested we can create accounts from the command line with this:

docker-compose exec oidcprovider sh -c './manage.py createsuperuser --user jwhitlock --email jwhitlock@example.com --no-input; ./manage.py shell -c "from django.contrib.auth.models import User; user=User.objects.latest(\"id\"); user.set_password(\"password\"); user.save()"'

We should create a helper script that gets added to the container in Dockerfile.oidcprovider. This makes scripting around account creation a lot easier.

Assignee: nobody → jwhitlock
Status: NEW → ASSIGNED

Tweaking the summary to be more of a catch-all for multiple issues all related to making the oidcprovider easier to use in the local dev environment.

Summary: add helper script for creating accounts in oidcprovider container → make oidcprovider work better in local dev environment

This is in prod now. Marking as FIXED.

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: