Class ConsentRequiredResponse

Assembly: redb.Identity.Contracts.dll

Machine-readable counterpart of the consent_required 302 redirect from
/connect/authorize. Returned with HTTP 400 + error=consent_required
when the caller signals X-Identity-Delegate-Consent: 1 on the authorize
request. Lets BFFs render a native consent UI instead of bouncing the browser
to the host's HTML fallback page.

public sealed class ConsentRequiredResponse

Inheritance

Object→ConsentRequiredResponse

Properties

AppName

Human-readable application name for the consent dialog.

[JsonPropertyName("appName")]
public string AppName { get; set; }

ClientId

OAuth client_id of the relying application.

[JsonPropertyName("clientId")]
public string ClientId { get; set; }

Error

Standard OAuth error code — always consent_required for this DTO.

[JsonPropertyName("error")]
public string Error { get; set; }

ReturnUrl

Original authorize URL to resume after the user grants consent.

[JsonPropertyName("returnUrl")]
public string ReturnUrl { get; set; }

Scopes

Scope identifiers the application is requesting.

[JsonPropertyName("scopes")]
public string[] Scopes { get; set; }

UserId

Subject (numeric user id as string) of the currently signed-in user.

[JsonPropertyName("userId")]
public string UserId { get; set; }