Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Authentication.dll Namespace: Microsoft.OData.Mcp.Authentication.Outbound Inheritance: System.Object

Syntax

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 is null 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 object

Syntax

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, or null when the server did not advertise one.

Syntax

Property Value

Type: System.Nullable<int>

Remarks

A caller should treat a null 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, or null when the server did not advertise one.

Syntax

Property Value

Type: string?

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?