Definition
Assembly: Microsoft.OData.Mcp.Authentication.dll Namespace: Microsoft.OData.Mcp.Authentication.Outbound Inheritance: System.ObjectSyntax
Summary
The RFC 8628 section 3.2 device authorization response returned from a device authorization endpoint.Remarks
Deserialized exclusively through OutboundOAuthJsonContext (AOT: JSON source-gen; no reflection). DeviceAuthorizationResponse.Interval isnull when the server omits it; RFC 8628
callers treat an absent interval as five seconds, but this type does not bake that default in so the
distinction between “absent” and “explicitly five” survives for callers that care.
Examples
Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
Properties
DeviceCode
Gets or sets the device verification code the client polls the token endpoint with.Syntax
Property Value
Type:string
ExpiresIn
Gets or sets the lifetime, in seconds, of DeviceAuthorizationResponse.DeviceCode and DeviceAuthorizationResponse.UserCode.Syntax
Property Value
Type:int
Interval
Gets or sets the minimum number of seconds the client must wait between token endpoint polls, ornull when the server did not advertise one.
Syntax
Property Value
Type:System.Nullable<int>
Remarks
A caller should treat anull value as five seconds per RFC 8628 section 3.2.
UserCode
Gets or sets the end-user verification code.Syntax
Property Value
Type:string
VerificationUri
Gets or sets the end-user verification URI the client displays or opens.Syntax
Property Value
Type:string
VerificationUriComplete
Gets or sets a verification URI that already carries DeviceAuthorizationResponse.UserCode, ornull
when the server did not advertise one.
Syntax
Property Value
Type:string?
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?