Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Duende.​IdentityServer.​Endpoints.​Results.​AuthorizeInteractionPageHttpWriter

Assembly: Duende.IdentityServer

Inheritance: object → AuthorizeInteractionPageHttpWriter

Implemented Interfaces

Writes the HTTP response for authorize interaction page results (login, consent, create-account, and custom redirect pages). This class can be subclassed to customize redirect URL construction, add cookies or headers, or change the response behavior. Register a subclass using <c>AddHttpWriter&lt;AuthorizeInteractionPageResult, TWriter&gt;()</c> .

Properties

The IdentityServer options.
Urls
The server URL helper used to resolve base paths and origins.
LocalesService
The service used to persist UI locales across redirects.

Methods

BuildReturnUrlAsync​(AuthorizeInteractionPageResult result, Microsoft.​AspNetCore.​Http.​HttpContext context)
Builds the return URL that will be passed as a query parameter to the interaction page. The return URL points back to the authorize callback endpoint and includes the original authorization parameters.
Returns The return URL string.
result The interaction page result.
context The HTTP context.
BuildRedirectUrlAsync​(AuthorizeInteractionPageResult result, string returnUrl, Microsoft.​AspNetCore.​Http.​HttpContext context)
Builds the final redirect URL by combining the interaction page URL with the return URL as a query parameter. Handles conversion of the return URL to absolute form when redirecting to an external server, and persists UI locales for local redirects. The returned URL may be relative; it is resolved to an absolute URL when written to the response in <see cref="M:Duende.IdentityServer.Endpoints.Results.AuthorizeInteractionPageHttpWriter.WriteResponseAsync(Microsoft.AspNetCore.Http.HttpContext,System.String)" /> .
Returns The redirect URL (may be relative; resolved to absolute in <see cref="M:Duende.IdentityServer.Endpoints.Results.AuthorizeInteractionPageHttpWriter.WriteResponseAsync(Microsoft.AspNetCore.Http.HttpContext,System.String)" /> ).
result The interaction page result.
returnUrl The return URL built by <see cref="M:Duende.IdentityServer.Endpoints.Results.AuthorizeInteractionPageHttpWriter.BuildReturnUrlAsync(Duende.IdentityServer.Endpoints.Results.AuthorizeInteractionPageResult,Microsoft.AspNetCore.Http.HttpContext)" /> .
context The HTTP context.
WriteResponseAsync​(Microsoft.​AspNetCore.​Http.​HttpContext context, string redirectUrl)
Writes the HTTP redirect response. Override this method to add custom cookies, headers, or change the status code.
context The HTTP context.
redirectUrl The fully constructed redirect URL.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object