Table of Contents

Class DefaultHandleGenerationService

Namespace
Fdyay.IdentityServer.Services
Assembly
Fdyay.IdentityServer.Core.dll

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

public sealed class DefaultHandleGenerationService : IHandleGenerationService
Inheritance
DefaultHandleGenerationService
Implements
Inherited Members

Remarks

32 bytes from the platform CSPRNG, base64url — exactly what every one of those seven sites did.

Methods

GenerateAsync(CancellationToken)

A new handle.

public Task<string> GenerateAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<string>

Remarks

32 bytes.

GenerateAsync(CancellationToken, int)

public Task<string> GenerateAsync(CancellationToken cancellationToken, int length)

Parameters

cancellationToken CancellationToken
length int

Returns

Task<string>

Remarks

Base64url, where Duende's handles are hex. A length below one is refused: Duende hands it to CryptoRandom.CreateUniqueId unchecked, and a handle of no bytes is one anybody holds.