Production checklist
Production checklist in the Sign-in with OAuth and OpenID Connect guide.
- Secrets in the environment, never in the repository; the session secret is 32 characters or more.
security.allowedHostsset, and your proxy sets the forwarded host and protocol itself, soevent.url.origin(used forreturnTo) is the public origin.- The redirect URI and post-logout URI registered at the provider are exactly the ones in the code.
- A rate limiter on the login and callback routes, as above; a shared
RateLimitStorewhen you run several processes. - A shared
SessionStorefor several processes. The sign-in state lives in the session, so a visitor must reach the same store at the callback. - Do not log full callback URLs: they carry a one-use code and state.
- Tell users to sign out with the button, and keep logout a
POST. - Consider a lower
absoluteTimeoutSecondsfor the session when the provider's grants are short.