This is related to ticket #1374, and simplifies the steps for local
development environments to have a working login flow for github and
google.
The improvements were configuration for the client id and secret for
google and github via .env vars instead of having to go through setting
up "Social Applications" via the admin interface, and automating the
process for creating google cloud projects in which oauth clients can be
created. Documentation was adjusted to fit.
That was as far as this could be automated given limitations on both
Google Cloud Platform and Github's APIs for creating oauth clients/apps.
The terraform process can be improved if these tickets see some progress
or an API comes about to support this.
Google
https://github.com/hashicorp/terraform-provider-google/issues/16452https://issuetracker.google.com/issues/116182848
Github
https://github.com/integrations/terraform-provider-github/issues/786
Testing docker-compose. Here are things I noticed.
- `styles.css` seemed to be missing in the local docker-compose
environment, even though it's present in the docker image. With
docker-compose a volume is mounted. The volume points to your git
repository where styles.css is now git-ignored.
Therefore, I am adding steps in the README to build `styles.css`.
@kennethreitz @rbbeeston , is this incorrect? Should the instructions be
different? What method do you use?
- local development: there had been a note to install Python 3.11. Even
though Django containers are running with Python 3.11, it should be
acceptable for the local OS to have the system default of Python 3.10.
They are not directly interacting. Don't modify the system python.
- To view the Users Guide and Contributors Guide, adding variables to
the env.template (and your .env file)
```
STATIC_CONTENT_AWS_ACCESS_KEY_ID=
STATIC_CONTENT_AWS_SECRET_ACCESS_KEY=
STATIC_CONTENT_BUCKET_NAME=
STATIC_CONTENT_REGION=
STATIC_CONTENT_AWS_S3_ENDPOINT_URL=
```
If anyone uses docker-compose and notices the instructions are
incomplete, please comment and/or contribute fixes to the docs.