Skip to content

RegistrationClientUriBuilder Class

Builds the RFC 7592 registration_client_uri - the absolute URL of a client's configuration endpoint - from the current request's base URL and the configured client-management route, replacing the MVC integration's IUriResolver.

C#
public sealed class RegistrationClientUriBuilder

Inheritance System.Object → RegistrationClientUriBuilder

Constructors

RegistrationClientUriBuilder(IHttpContextAccessor, LinkGenerator) Constructor

Builds the RFC 7592 registration_client_uri - the absolute URL of a client's configuration endpoint - from the current request's base URL and the configured client-management route, replacing the MVC integration's IUriResolver.

C#
public RegistrationClientUriBuilder(Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor, Microsoft.AspNetCore.Routing.LinkGenerator linkGenerator);

Parameters

httpContextAccessor Microsoft.AspNetCore.Http.IHttpContextAccessor
linkGenerator Microsoft.AspNetCore.Routing.LinkGenerator

Methods

RegistrationClientUriBuilder.Build(string) Method

Builds the absolute configuration-endpoint URL for the given client.

C#
public System.Uri Build(string clientId);

Parameters

clientId System.String

Returns

System.Uri