Turn on OAuth for your apps from the CLI
OAuth for your apps now ships like the rest of your configuration. zitadel settings oauth enable writes .zitadel/oauth/oauth.json, the switch for your project's authorization server, and zitadel deploy sends it with the release. A release without the file leaves the authorization server off. Once the release is live on your primary origins, the issuer's metadata answers through your app at /.well-known/oauth-authorization-server/__nextgen/oauth/<project-id>.
Sign-in through OAuth still does not work end to end: the login does not issue authorization codes yet.
zitadel deploynow sends the applications you declare in.zitadel/applications/<slug>.jsonwith the release (#3355), anddeploy --dry-runshows an added, changed or removed application in its diff.- Before anything is uploaded, a deploy refuses an application file that breaks the schema, a client without a
client_id, a confidential client whose secret is not a${{ NAME }}variable, two files with one slug and two clients with oneclient_id. It also refuses a secret variable that another client or a connection names, that the project lacks, or that holds a plain value.zitadel setupcopies the schema to.zitadel/meta/application.json, so your editor checks each file. /oauth/<project_id>/jwks, thejwks_uriin the metadata, serves the public keys of the project's token signing keys as a JWK set, so your backend can verify the project's access tokens. It stays up when a release turns OAuth off, so tokens issued before stay verifiable until they expire. A verifier may cache the set for 5 minutes.- The issuer answers through the proxy of a server SDK. The dev proxies
zitadel setupwrites for single-page apps do not forward its paths yet. - A self-hosted server serves the authorization server only with
oauth.enabled(NEXTGEN_OAUTH_ENABLED), which is off by default.oauth.jwks_max_agesets how long a verifier may cache the JWK set.
Turn on the OAuth authorization server, Configuration as code