Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Inbound OAuth2 sign-in settings

Egress policy for a channel that completes a browser authorization-code grant. Everything describing one identity-provider relationship belongs to the channel’s oauth2_login block, because it is part of the definition and is promoted with it. That is the endpoints, the client credentials, the scopes, PKCE and the state cookie.

Synopsis

[oauth2_login]
allow_private_token_urls = false

Options

SettingDefaultEnv varWhen to change
oauth2_login.allow_private_token_urlsfalseORION_OAUTH2_LOGIN__ALLOW_PRIVATE_TOKEN_URLSTurn on for an identity provider on a private address, or a mock one in a test harness.

token_url is authored input that Orion sends the client secret and the authorization code to. It gets the same treatment jwks_url does: https:// where it is authored, and the resolved address checked on every exchange. The setting is instance-wide for the same reason, too. A per-channel opt-out would let a definition grant itself the egress the setting gates.

authorize_url is not covered by this: Orion never fetches it, it only redirects the browser there. What guards that one is the https:// requirement and the return_to allow-list.

Last verified 14 September 2026