@@ -61,6 +61,7 @@ def create(
6161 name : str ,
6262 auth_credentials : str | Omit = omit ,
6363 description : Optional [str ] | Omit = omit ,
64+ is_shared_oauth_callback_enabled : bool | Omit = omit ,
6465 updated_prompts : Iterable [server_create_params .UpdatedPrompt ] | Omit = omit ,
6566 updated_tools : Iterable [server_create_params .UpdatedTool ] | Omit = omit ,
6667 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -76,6 +77,12 @@ def create(
7677 Args:
7778 id: server id
7879
80+ is_shared_oauth_callback_enabled: When true, the gateway worker uses the shared Cloudflare-owned OAuth callback
81+ endpoint as the redirect_uri for upstream on-behalf OAuth, instead of the
82+ customer portal hostname. New public server creates default to true; existing
83+ servers default to false from migration until explicitly updated. Effective
84+ behavior is gated by the gateway worker's per-env rollout mode KV key.
85+
7986 extra_headers: Send extra headers
8087
8188 extra_query: Add additional query parameters to the request
@@ -96,6 +103,7 @@ def create(
96103 "name" : name ,
97104 "auth_credentials" : auth_credentials ,
98105 "description" : description ,
106+ "is_shared_oauth_callback_enabled" : is_shared_oauth_callback_enabled ,
99107 "updated_prompts" : updated_prompts ,
100108 "updated_tools" : updated_tools ,
101109 },
@@ -118,6 +126,7 @@ def update(
118126 account_id : str ,
119127 auth_credentials : str | Omit = omit ,
120128 description : Optional [str ] | Omit = omit ,
129+ is_shared_oauth_callback_enabled : bool | Omit = omit ,
121130 name : str | Omit = omit ,
122131 updated_prompts : Iterable [server_update_params .UpdatedPrompt ] | Omit = omit ,
123132 updated_tools : Iterable [server_update_params .UpdatedTool ] | Omit = omit ,
@@ -134,6 +143,12 @@ def update(
134143 Args:
135144 id: server id
136145
146+ is_shared_oauth_callback_enabled: When true, the gateway worker uses the shared Cloudflare-owned OAuth callback
147+ endpoint as the redirect_uri for upstream on-behalf OAuth, instead of the
148+ customer portal hostname. New public server creates default to true; existing
149+ servers default to false from migration until explicitly updated. Effective
150+ behavior is gated by the gateway worker's per-env rollout mode KV key.
151+
137152 extra_headers: Send extra headers
138153
139154 extra_query: Add additional query parameters to the request
@@ -152,6 +167,7 @@ def update(
152167 {
153168 "auth_credentials" : auth_credentials ,
154169 "description" : description ,
170+ "is_shared_oauth_callback_enabled" : is_shared_oauth_callback_enabled ,
155171 "name" : name ,
156172 "updated_prompts" : updated_prompts ,
157173 "updated_tools" : updated_tools ,
@@ -378,6 +394,7 @@ async def create(
378394 name : str ,
379395 auth_credentials : str | Omit = omit ,
380396 description : Optional [str ] | Omit = omit ,
397+ is_shared_oauth_callback_enabled : bool | Omit = omit ,
381398 updated_prompts : Iterable [server_create_params .UpdatedPrompt ] | Omit = omit ,
382399 updated_tools : Iterable [server_create_params .UpdatedTool ] | Omit = omit ,
383400 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -393,6 +410,12 @@ async def create(
393410 Args:
394411 id: server id
395412
413+ is_shared_oauth_callback_enabled: When true, the gateway worker uses the shared Cloudflare-owned OAuth callback
414+ endpoint as the redirect_uri for upstream on-behalf OAuth, instead of the
415+ customer portal hostname. New public server creates default to true; existing
416+ servers default to false from migration until explicitly updated. Effective
417+ behavior is gated by the gateway worker's per-env rollout mode KV key.
418+
396419 extra_headers: Send extra headers
397420
398421 extra_query: Add additional query parameters to the request
@@ -413,6 +436,7 @@ async def create(
413436 "name" : name ,
414437 "auth_credentials" : auth_credentials ,
415438 "description" : description ,
439+ "is_shared_oauth_callback_enabled" : is_shared_oauth_callback_enabled ,
416440 "updated_prompts" : updated_prompts ,
417441 "updated_tools" : updated_tools ,
418442 },
@@ -435,6 +459,7 @@ async def update(
435459 account_id : str ,
436460 auth_credentials : str | Omit = omit ,
437461 description : Optional [str ] | Omit = omit ,
462+ is_shared_oauth_callback_enabled : bool | Omit = omit ,
438463 name : str | Omit = omit ,
439464 updated_prompts : Iterable [server_update_params .UpdatedPrompt ] | Omit = omit ,
440465 updated_tools : Iterable [server_update_params .UpdatedTool ] | Omit = omit ,
@@ -451,6 +476,12 @@ async def update(
451476 Args:
452477 id: server id
453478
479+ is_shared_oauth_callback_enabled: When true, the gateway worker uses the shared Cloudflare-owned OAuth callback
480+ endpoint as the redirect_uri for upstream on-behalf OAuth, instead of the
481+ customer portal hostname. New public server creates default to true; existing
482+ servers default to false from migration until explicitly updated. Effective
483+ behavior is gated by the gateway worker's per-env rollout mode KV key.
484+
454485 extra_headers: Send extra headers
455486
456487 extra_query: Add additional query parameters to the request
@@ -469,6 +500,7 @@ async def update(
469500 {
470501 "auth_credentials" : auth_credentials ,
471502 "description" : description ,
503+ "is_shared_oauth_callback_enabled" : is_shared_oauth_callback_enabled ,
472504 "name" : name ,
473505 "updated_prompts" : updated_prompts ,
474506 "updated_tools" : updated_tools ,
0 commit comments