Table of Contents

Class DeviceModel.InputModel

Namespace
Fdyay.IdentityServer.UI.Pages
Assembly
Fdyay.IdentityServer.UI.dll

What the page's forms post.

public class DeviceModel.InputModel
Inheritance
DeviceModel.InputModel
Inherited Members

Properties

Button

The button that posted the form: yes to allow, anything else to deny, empty only to look the code up.

public string Button { get; set; }

Property Value

string

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

string

Remarks

Duende's templates ask for it on this page. Kept to 200 characters, the SQL Server dialect's column for it.

ScopesConsented

The scope values whose boxes were ticked.

public IList<string> ScopesConsented { get; }

Property Value

IList<string>

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.

UserCode

The user code the device showed, typed in or carried from the query string.

public string? UserCode { get; set; }

Property Value

string