diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.DeleteTemplate.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.DeleteTemplate.g.cs
index 5456225..1606607 100644
--- a/src/libs/Shotstack/Generated/Shotstack.EditClient.DeleteTemplate.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.DeleteTemplate.g.cs
@@ -127,6 +127,8 @@ await DeleteTemplateAsResponseAsync(
httpRequestMessage: __httpRequest,
id: id!);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}
diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetRender.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetRender.g.cs
index c0f0b50..dcb9236 100644
--- a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetRender.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetRender.g.cs
@@ -134,6 +134,8 @@ partial void ProcessGetRenderResponseContent(
httpRequestMessage: __httpRequest,
id: id!);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}
diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplate.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplate.g.cs
index 9029d5e..fd850c8 100644
--- a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplate.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplate.g.cs
@@ -134,6 +134,8 @@ partial void ProcessGetTemplateResponseContent(
httpRequestMessage: __httpRequest,
id: id!);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}
diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplates.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplates.g.cs
index cedb16e..6626333 100644
--- a/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplates.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.GetTemplates.g.cs
@@ -125,6 +125,8 @@ partial void ProcessGetTemplatesResponseContent(
httpClient: HttpClient,
httpRequestMessage: __httpRequest);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}
diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostRender.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostRender.g.cs
index 3eeac1a..fe18610 100644
--- a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostRender.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostRender.g.cs
@@ -167,6 +167,8 @@ partial void ProcessPostRenderResponseContent(
httpRequestMessage: __httpRequest,
request: request);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}
diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplate.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplate.g.cs
index 1ec8c2e..a9fae90 100644
--- a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplate.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplate.g.cs
@@ -149,6 +149,8 @@ partial void ProcessPostTemplateResponseContent(
httpRequestMessage: __httpRequest,
request: request);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}
diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplateRender.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplateRender.g.cs
index c54d086..03baf4e 100644
--- a/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplateRender.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.PostTemplateRender.g.cs
@@ -147,6 +147,8 @@ partial void ProcessPostTemplateRenderResponseContent(
httpRequestMessage: __httpRequest,
request: request);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}
diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.Probe.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.Probe.g.cs
index 0e18044..a3ab263 100644
--- a/src/libs/Shotstack/Generated/Shotstack.EditClient.Probe.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.Probe.g.cs
@@ -138,6 +138,8 @@ partial void ProcessProbeResponseContent(
httpRequestMessage: __httpRequest,
url: url!);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}
diff --git a/src/libs/Shotstack/Generated/Shotstack.EditClient.PutTemplate.g.cs b/src/libs/Shotstack/Generated/Shotstack.EditClient.PutTemplate.g.cs
index 8c684cd..55b4024 100644
--- a/src/libs/Shotstack/Generated/Shotstack.EditClient.PutTemplate.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.EditClient.PutTemplate.g.cs
@@ -154,6 +154,8 @@ partial void ProcessPutTemplateResponseContent(
id: id!,
request: request);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}
diff --git a/src/libs/Shotstack/Generated/Shotstack.IngestClient.DeleteSource.g.cs b/src/libs/Shotstack/Generated/Shotstack.IngestClient.DeleteSource.g.cs
index 15de68f..406a689 100644
--- a/src/libs/Shotstack/Generated/Shotstack.IngestClient.DeleteSource.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.IngestClient.DeleteSource.g.cs
@@ -127,6 +127,8 @@ await DeleteSourceAsResponseAsync(
httpRequestMessage: __httpRequest,
id: id!);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}
diff --git a/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSource.g.cs b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSource.g.cs
index b4433ef..89ac1db 100644
--- a/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSource.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSource.g.cs
@@ -134,6 +134,8 @@ partial void ProcessGetSourceResponseContent(
httpRequestMessage: __httpRequest,
id: id!);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}
diff --git a/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSources.g.cs b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSources.g.cs
index b1af549..d5d87ee 100644
--- a/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSources.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetSources.g.cs
@@ -125,6 +125,8 @@ partial void ProcessGetSourcesResponseContent(
httpClient: HttpClient,
httpRequestMessage: __httpRequest);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}
diff --git a/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetUploadSignedUrl.g.cs b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetUploadSignedUrl.g.cs
index 98c715f..c90f305 100644
--- a/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetUploadSignedUrl.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.IngestClient.GetUploadSignedUrl.g.cs
@@ -147,6 +147,8 @@ partial void ProcessGetUploadSignedUrlResponseContent(
httpClient: HttpClient,
httpRequestMessage: __httpRequest);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}
diff --git a/src/libs/Shotstack/Generated/Shotstack.IngestClient.PostSource.g.cs b/src/libs/Shotstack/Generated/Shotstack.IngestClient.PostSource.g.cs
index 02a2597..2839630 100644
--- a/src/libs/Shotstack/Generated/Shotstack.IngestClient.PostSource.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.IngestClient.PostSource.g.cs
@@ -147,6 +147,8 @@ partial void ProcessPostSourceResponseContent(
httpRequestMessage: __httpRequest,
request: request);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}
diff --git a/src/libs/Shotstack/Generated/Shotstack.OptionsSupport.g.cs b/src/libs/Shotstack/Generated/Shotstack.OptionsSupport.g.cs
index 8cb598a..43b3d0f 100644
--- a/src/libs/Shotstack/Generated/Shotstack.OptionsSupport.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.OptionsSupport.g.cs
@@ -150,6 +150,84 @@ public interface IAutoSDKAuthorizationProvider
global::Shotstack.AutoSDKHookContext context);
}
+ ///
+ /// Marker keys stamped onto outgoing
+ /// instances so consumer s — and any
+ /// other transport-layer code that runs after AutoSDK's send pipeline — can observe whether
+ /// the resolved Authorization is call-scoped and opt out of overwriting it with a
+ /// rotation-aware account-level credential.
+ ///
+ public static class AutoSDKHttpRequestOptions
+ {
+ ///
+ /// Key under which records the marker. Exposed
+ /// for handlers that target frameworks older than .NET 5 and need to read the value
+ /// through the legacy HttpRequestMessage.Properties bag.
+ ///
+ public const string AuthorizationOverrideKey = "AutoSDK.AuthorizationOverride";
+
+#if NET5_0_OR_GREATER
+ ///
+ /// Strongly-typed for
+ /// the call-scoped Authorization marker on .NET 5+ targets. Consumers should prefer this
+ /// over the legacy HttpRequestMessage.Properties bag where available.
+ ///
+ public static readonly global::System.Net.Http.HttpRequestOptionsKey AuthorizationOverride =
+ new global::System.Net.Http.HttpRequestOptionsKey(AuthorizationOverrideKey);
+#endif
+
+ ///
+ /// Stamps the call-scoped Authorization marker on . AutoSDK's
+ /// built-in calls this whenever the
+ /// resolved auth came from a per-request override or a client-level
+ /// . Hand-written SDK extensions that set a
+ /// non-default Authorization header (e.g. a session-scoped bearer returned by an
+ /// upstream poll) should call this too so downstream rotation handlers know to skip the
+ /// overwrite.
+ ///
+ ///
+ public static void StampAuthorizationOverride(
+ global::System.Net.Http.HttpRequestMessage? request)
+ {
+ if (request is null)
+ {
+ return;
+ }
+
+#if NET5_0_OR_GREATER
+ request.Options.Set(AuthorizationOverride, true);
+#else
+#pragma warning disable CS0618 // HttpRequestMessage.Properties is obsolete in NET5+, but the only option below it.
+ request.Properties[AuthorizationOverrideKey] = true;
+#pragma warning restore CS0618
+#endif
+ }
+
+ ///
+ /// Returns true when previously marked the
+ /// request as carrying a call-scoped Authorization.
+ ///
+ ///
+ public static bool HasAuthorizationOverride(
+ global::System.Net.Http.HttpRequestMessage? request)
+ {
+ if (request is null)
+ {
+ return false;
+ }
+
+#if NET5_0_OR_GREATER
+ return request.Options.TryGetValue(AuthorizationOverride, out var value) && value;
+#else
+#pragma warning disable CS0618
+ return request.Properties.TryGetValue(AuthorizationOverrideKey, out var raw) &&
+ raw is bool flag &&
+ flag;
+#pragma warning restore CS0618
+#endif
+ }
+ }
+
///
/// Built-in that consults
/// before every outgoing
@@ -176,6 +254,7 @@ public sealed class AutoSDKAuthorizationProviderHook : global::Shotstack.AutoSDK
ApplyAuthorization(context.Request, perRequest[index]);
}
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request);
return;
}
@@ -195,6 +274,8 @@ public sealed class AutoSDKAuthorizationProviderHook : global::Shotstack.AutoSDK
{
ApplyAuthorization(context.Request, resolved[index]);
}
+
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request);
}
private static void ApplyAuthorization(
diff --git a/src/libs/Shotstack/Generated/Shotstack.ServeClient.DeleteAsset.g.cs b/src/libs/Shotstack/Generated/Shotstack.ServeClient.DeleteAsset.g.cs
index 3d93671..c6a0590 100644
--- a/src/libs/Shotstack/Generated/Shotstack.ServeClient.DeleteAsset.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.ServeClient.DeleteAsset.g.cs
@@ -129,6 +129,8 @@ await DeleteAssetAsResponseAsync(
httpRequestMessage: __httpRequest,
id: id!);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}
diff --git a/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAsset.g.cs b/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAsset.g.cs
index 82be8f9..9e0a826 100644
--- a/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAsset.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAsset.g.cs
@@ -138,6 +138,8 @@ partial void ProcessGetAssetResponseContent(
httpRequestMessage: __httpRequest,
id: id!);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}
diff --git a/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAssetByRenderId.g.cs b/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAssetByRenderId.g.cs
index df89492..3f1e6a4 100644
--- a/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAssetByRenderId.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.ServeClient.GetAssetByRenderId.g.cs
@@ -138,6 +138,8 @@ partial void ProcessGetAssetByRenderIdResponseContent(
httpRequestMessage: __httpRequest,
id: id!);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}
diff --git a/src/libs/Shotstack/Generated/Shotstack.ServeClient.PostServeAsset.g.cs b/src/libs/Shotstack/Generated/Shotstack.ServeClient.PostServeAsset.g.cs
index c5fec37..2f8d85f 100644
--- a/src/libs/Shotstack/Generated/Shotstack.ServeClient.PostServeAsset.g.cs
+++ b/src/libs/Shotstack/Generated/Shotstack.ServeClient.PostServeAsset.g.cs
@@ -147,6 +147,8 @@ partial void ProcessPostServeAssetResponseContent(
httpRequestMessage: __httpRequest,
request: request);
+ global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest);
+
return __httpRequest;
}