Save a `local_settings.conf` file that has the contents:
SQL_URI = "mysql://user:password@localhost/db_name" # mysql uri AUTH_DB = "/absolute/path/to/auth.db/" # path to sqlite db file GN_AUTH_SECRETS = "/absolute/path/to/secrets/secrets.conf"
The `GN_AUTH_SECRETS` path has two functions:
An example is:
SECRET_KEY = "qQIrgiK29kXZU6v8D09y4uw_sk8I4cqgNZniYUrRoUk"
export FLASK_DEBUG=1 AUTHLIB_INSECURE_TRANSPORT=1 OAUTHLIB_INSECURE_TRANSPORT=1 FLASK_APP=gn_auth/wsgi export GN_AUTH_CONF=/absolute/path/to/local_settings.conf flask init-dev-clients --client-uri "http://localhost:port" flask init-dev-users flask assign-system-admin 0ad1917c-57da-46dc-b79e-c81c91e5b928
Rerun
FLASK_DEBUG=1 AUTHLIB_INSECURE_TRANSPORT=1 OAUTHLIB_INSECURE_TRANSPORT=1 \ GN_AUTH_CONF=/absolute/path/to/local_settings.conf FLASK_APP=gn_auth/wsgi \ flask init-dev-clients --client-uri "http://localhost:port_you_use_for_gn2"
This will update your clients list to have all the related urls we want.
When you see the error: `500 Server Error: INTERNAL SERVER ERROR for url: http://localhost:8081/auth/token`, restart the gn2 server.