Class ConsentModel.InputModel
- Namespace
- Fdyay.IdentityServer.UI.Pages.Account
- Assembly
- Fdyay.IdentityServer.UI.dll
What the consent form posts.
public class ConsentModel.InputModel
- Inheritance
-
ConsentModel.InputModel
- Inherited Members
Properties
Button
The button that posted the form: yes to allow, anything else to deny.
public string Button { get; set; }
Property Value
Description
A name for this grant — "Kitchen tablet" — kept with it for the user's list of grants. Optional.
public string? Description { get; set; }
Property Value
Remarks
Duende's templates ask for it on this page. Kept to 200 characters, the SQL Server dialect's column for it.
RememberConsent
Whether the user asked for this decision to be remembered.
public bool RememberConsent { get; set; }
Property Value
Remarks
A client that does not allow it vetoes this server-side, so a posted value cannot grant a durable consent the client forbids.
ReturnUrl
The authorize request's return URL, carried through the form from the query string.
public string? ReturnUrl { get; set; }
Property Value
ScopesConsented
The scope values whose boxes were ticked.
public IList<string> ScopesConsented { get; }
Property Value
Remarks
An unticked box posts nothing and a disabled one posts nothing either, so this is what the browser sent and not the grant. Selected(ResourceValidationResult, IEnumerable<string>) turns it into one.