Class DeviceAuthorizationSuccessEvent
- Namespace
- Fdyay.IdentityServer.Events
- Assembly
- Fdyay.IdentityServer.Core.dll
A device asked to be authorized and was given a user code to show.
public class DeviceAuthorizationSuccessEvent : Event
- Inheritance
-
DeviceAuthorizationSuccessEvent
- Inherited Members
Remarks
Neither code is carried. The user code is a credential for the next few minutes — it is exactly what the approval screen accepts — and the device code is the handle the device polls the token endpoint with, so an event carrying either would hand a reader the ability to finish somebody else's sign-in.
Constructors
DeviceAuthorizationSuccessEvent(string, IEnumerable<string>)
A device authorization request that was accepted.
public DeviceAuthorizationSuccessEvent(string clientId, IEnumerable<string> scopes)
Parameters
clientIdstringThe client the device authenticated as.
scopesIEnumerable<string>The scopes the validated request asks the user to approve.
Properties
ClientId
The client the device authenticated as.
public string ClientId { get; }
Property Value
ClientName
The client's display name, where it has one. Duende's.
public string? ClientName { get; set; }
Property Value
Endpoint
DeviceAuthorization, the endpoint, as Duende names it.
public string? Endpoint { get; set; }
Property Value
Scopes
The scopes the user will be asked to approve.
public IReadOnlyCollection<string> Scopes { get; }