Skip to main content

AuthorizationRequestUriGenerator Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Features.RandomGenerators

AuthorizationRequestUriGenerator Class

Default IAuthorizationRequestUriGenerator implementation. Appends a URL-safe Base64 encoded block of cryptographically secure random bytes (length governed by RequestUriLength) to Prefix, producing the urn:-style request_uri values used by Pushed Authorization Requests (RFC 9126).

public class AuthorizationRequestUriGenerator : Abblix.Oidc.Server.Features.RandomGenerators.IAuthorizationRequestUriGenerator

Inheritance System.Object → AuthorizationRequestUriGenerator

Implements IAuthorizationRequestUriGenerator

Constructors

AuthorizationRequestUriGenerator(IOptions<OidcOptions>) Constructor

Default IAuthorizationRequestUriGenerator implementation. Appends a URL-safe Base64 encoded block of cryptographically secure random bytes (length governed by RequestUriLength) to Prefix, producing the urn:-style request_uri values used by Pushed Authorization Requests (RFC 9126).

public AuthorizationRequestUriGenerator(Microsoft.Extensions.Options.IOptions<Abblix.Oidc.Server.Common.Configuration.OidcOptions> options);

Parameters

options Microsoft.Extensions.Options.IOptions<OidcOptions>

Methods

AuthorizationRequestUriGenerator.GenerateRequestUri() Method

Generates a unique request URI by appending a securely generated random string to a predefined URN prefix.

public System.Uri GenerateRequestUri();

Implements GenerateRequestUri()

Returns

System.Uri
A new unique URI for an authorization request.