IOidcEndpointResolver Interface
Resolves the absolute URL an OIDC endpoint is served at in the running application.
public interface IOidcEndpointResolverRemarks
Both transport adapters register an implementation, so host code that needs one of these URLs - an external identity provider's callback pointing back at the authorization endpoint, say - is written once and keeps working when the host swaps one adapter for the other. Each adapter answers from what it actually mapped: MVC from its controller routes, Minimal API from its named endpoints, so a route override or a group prefix is reflected without the caller knowing either exists.
Methods
IOidcEndpointResolver.Resolve(OidcEndpoints) Method
Returns the absolute URL of endpoint for the current request.
System.Uri? Resolve(Abblix.Oidc.Server.Common.Configuration.OidcEndpoints endpoint);Parameters
endpoint OidcEndpoints
The endpoint to resolve. Exactly one flag, never a combination: All and Base name a set rather than an endpoint and resolve to nothing.
Returns
System.Uri
The endpoint's absolute URL, or null when it is not mapped - because the endpoint is disabled in
EnabledEndpoints, or because its route takes parameters this contract cannot
supply, which today is the per-client configuration endpoint of
RegisterClient.