ISecureHttpFetcher Interface
Abblix.Oidc.Server
Abblix.Oidc.Server.Features.SecureHttpFetch
ISecureHttpFetcher Interface
Defines a contract for securely fetching content from external URIs with SSRF protection.
public interface ISecureHttpFetcher
Derived
↳ CachingSecureHttpFetcherDecorator
↳ SecureHttpFetcher
Methods
ISecureHttpFetcher.FetchAsync<T>(Uri) Method
Fetches content from a URI with SSRF protection. For JSON content, deserializes to the specified type. For raw content like JWT strings, use string as the type parameter.
System.Threading.Tasks.Task<Abblix.Utils.Result<T,Abblix.Oidc.Server.Common.OidcError>> FetchAsync<T>(System.Uri uri);
Type parameters
T
The type to deserialize the response to. Use string for raw text content.
Parameters
uri System.Uri
The URI to fetch content from.
Returns
System.Threading.Tasks.Task<Abblix.Utils.Result<T,OidcError>>
A Result containing either the deserialized content or an OidcError if the fetch operation fails.