Use this checklist after mix sigra.install and mix sigra.gen.oauth --providers google.
- In Google Cloud Console, create or select the project that will own your app's OAuth credentials.
- Open
APIs & Services -> OAuth consent screenand configure the app name, support email, and developer contact email. - Add the scopes your Sigra flow needs. For the default Google provider wiring, keep
openid,email, andprofile. - Open
APIs & Services -> Credentialsand create anOAuth client IDfor a web application. - Add your normal app callback URI, for example
http://localhost:4000/auth/google/callback. - Add the smoketest callback URI
http://127.0.0.1:4001/callback. - Export the generated credentials where your app reads them:
export GOOGLE_CLIENT_ID="..."
export GOOGLE_CLIENT_SECRET="..."
- Ensure your app's Sigra config points at those values under
oauth: [providers: [google: ...]]. - Start your app environment so the config is available.
- Run the real round-trip check:
mix sigra.oauth.smoketest --provider=google
The task prints a Google authorize URL, waits on 127.0.0.1:4001, and finishes with:
OK — got back valid id_token with sub=... and email=...