Skip to content

Commit 0be45b9

Browse files
HavenDVclaude
andcommitted
fix: use --security-scheme ApiKey:Header:SGAI-APIKEY for native auth
Replaces Http:Header:Bearer + runtime PrepareRequest hook with native ApiKey:Header generation. Generated code now adds SGAI-APIKEY header directly in all sub-client requests, fixing auth propagation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2cb7a78 commit 0be45b9

30 files changed

Lines changed: 236 additions & 255 deletions

File tree

src/libs/ScrapeGraphAI/Extensions/ScrapeGraphAIClient.Auth.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/libs/ScrapeGraphAI/Generated/ScrapeGraphAI.IOrthogonalClient.ProxyX402PathDelete5.g.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/libs/ScrapeGraphAI/Generated/ScrapeGraphAI.IOrthogonalClient.ProxyX402PathDelete.g.cs renamed to src/libs/ScrapeGraphAI/Generated/ScrapeGraphAI.IOrthogonalClient.ProxyX402PathPost.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public partial interface IOrthogonalClient
1212
/// <param name="path"></param>
1313
/// <param name="cancellationToken">The token to cancel the operation with</param>
1414
/// <exception cref="global::ScrapeGraphAI.ApiException"></exception>
15-
global::System.Threading.Tasks.Task<string> ProxyX402PathDeleteAsync(
15+
global::System.Threading.Tasks.Task<string> ProxyX402PathPostAsync(
1616
string path,
1717
global::System.Threading.CancellationToken cancellationToken = default);
1818
}

src/libs/ScrapeGraphAI/Generated/ScrapeGraphAI.IOrthogonalClient.ProxyX402PathDelete4.g.cs renamed to src/libs/ScrapeGraphAI/Generated/ScrapeGraphAI.IOrthogonalClient.ProxyX402PathPost2.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public partial interface IOrthogonalClient
1212
/// <param name="path"></param>
1313
/// <param name="cancellationToken">The token to cancel the operation with</param>
1414
/// <exception cref="global::ScrapeGraphAI.ApiException"></exception>
15-
global::System.Threading.Tasks.Task<string> ProxyX402PathDelete4Async(
15+
global::System.Threading.Tasks.Task<string> ProxyX402PathPost2Async(
1616
string path,
1717
global::System.Threading.CancellationToken cancellationToken = default);
1818
}

src/libs/ScrapeGraphAI/Generated/ScrapeGraphAI.IOrthogonalClient.ProxyX402PathDelete2.g.cs renamed to src/libs/ScrapeGraphAI/Generated/ScrapeGraphAI.IOrthogonalClient.ProxyX402PathPost3.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public partial interface IOrthogonalClient
1212
/// <param name="path"></param>
1313
/// <param name="cancellationToken">The token to cancel the operation with</param>
1414
/// <exception cref="global::ScrapeGraphAI.ApiException"></exception>
15-
global::System.Threading.Tasks.Task<string> ProxyX402PathDelete2Async(
15+
global::System.Threading.Tasks.Task<string> ProxyX402PathPost3Async(
1616
string path,
1717
global::System.Threading.CancellationToken cancellationToken = default);
1818
}

src/libs/ScrapeGraphAI/Generated/ScrapeGraphAI.IOrthogonalClient.ProxyX402PathDelete3.g.cs renamed to src/libs/ScrapeGraphAI/Generated/ScrapeGraphAI.IOrthogonalClient.ProxyX402PathPost4.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public partial interface IOrthogonalClient
1212
/// <param name="path"></param>
1313
/// <param name="cancellationToken">The token to cancel the operation with</param>
1414
/// <exception cref="global::ScrapeGraphAI.ApiException"></exception>
15-
global::System.Threading.Tasks.Task<string> ProxyX402PathDelete3Async(
15+
global::System.Threading.Tasks.Task<string> ProxyX402PathPost4Async(
1616
string path,
1717
global::System.Threading.CancellationToken cancellationToken = default);
1818
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#nullable enable
2+
3+
namespace ScrapeGraphAI
4+
{
5+
public partial interface IOrthogonalClient
6+
{
7+
/// <summary>
8+
/// Proxy<br/>
9+
/// Proxy endpoint for Orthogonal API integration.<br/>
10+
/// Forwards requests to https://api.orth.sh/pay/{ORTHOGONHAL_API_KEY}/{path}
11+
/// </summary>
12+
/// <param name="path"></param>
13+
/// <param name="cancellationToken">The token to cancel the operation with</param>
14+
/// <exception cref="global::ScrapeGraphAI.ApiException"></exception>
15+
global::System.Threading.Tasks.Task<string> ProxyX402PathPost5Async(
16+
string path,
17+
global::System.Threading.CancellationToken cancellationToken = default);
18+
}
19+
}

src/libs/ScrapeGraphAI/Generated/ScrapeGraphAI.IScrapeGraphAIClient.Authorizations.Bearer.g.cs renamed to src/libs/ScrapeGraphAI/Generated/ScrapeGraphAI.IScrapeGraphAIClient.Authorizations.ApiKeyInHeader.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ namespace ScrapeGraphAI
66
public partial interface IScrapeGraphAIClient
77
{
88
/// <summary>
9-
/// Authorize using bearer authentication.
9+
/// Authorize using ApiKey authentication.
1010
/// </summary>
1111
/// <param name="apiKey"></param>
12-
public void AuthorizeUsingBearer(
12+
public void AuthorizeUsingApiKeyInHeader(
1313
string apiKey);
1414
}
1515
}

src/libs/ScrapeGraphAI/Generated/ScrapeGraphAI.Models.ProxyX402PathDeleteResponse5.Json.g.cs

Lines changed: 0 additions & 92 deletions
This file was deleted.

src/libs/ScrapeGraphAI/Generated/ScrapeGraphAI.Models.ProxyX402PathDeleteResponse5.g.cs

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)