Class DeviceAuthorizationFailureEvent
- Namespace
- Fdyay.IdentityServer.Events
- Assembly
- Fdyay.IdentityServer.Core.dll
A device authorization request was refused.
public class DeviceAuthorizationFailureEvent : Event
- Inheritance
-
DeviceAuthorizationFailureEvent
- Inherited Members
Remarks
Raised for every refusal the endpoint makes, not only for a bad credential: a client that authenticates perfectly well and is not registered for this grant, or asks for a scope it may not have, is refused after the credential check and would be missing from a record that only covered credentials.
Constructors
DeviceAuthorizationFailureEvent(string?, string)
A refused device authorization request.
public DeviceAuthorizationFailureEvent(string? clientId, string message)
Parameters
clientIdstringThe client, or null when the request never named one this server knows.
messagestringWhy it was refused.
Properties
ClientId
Null when the request never got as far as naming a client this server knows.
public string? ClientId { get; }
Property Value
ClientName
The client's display name, once the request had been validated far enough to know it. Duende's.
public string? ClientName { get; set; }
Property Value
Endpoint
DeviceAuthorization, the endpoint, as Duende names it.
public string? Endpoint { get; set; }
Property Value
Error
The OAuth error code the client was answered with. Duende's.
public string? Error { get; set; }
Property Value
ErrorDescription
The request validator's description of the refusal, where it gave one. Duende's, which Duende also answers the client with; this endpoint answers with the error code alone, as it did before 0.162.0.
public string? ErrorDescription { get; set; }
Property Value
Scopes
The scopes the request asked for, once it had been read. Duende's member, as a collection here.
public IReadOnlyCollection<string>? Scopes { get; set; }