Restructure solution layout by module
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace StellaOps.Auth.Client;
|
||||
|
||||
/// <summary>
|
||||
/// Represents an issued token with metadata.
|
||||
/// </summary>
|
||||
public sealed record StellaOpsTokenResult(
|
||||
string AccessToken,
|
||||
string TokenType,
|
||||
DateTimeOffset ExpiresAtUtc,
|
||||
IReadOnlyList<string> Scopes,
|
||||
string? RefreshToken = null,
|
||||
string? IdToken = null,
|
||||
string? RawResponse = null)
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts the result to a cache entry.
|
||||
/// </summary>
|
||||
public StellaOpsTokenCacheEntry ToCacheEntry()
|
||||
=> new(AccessToken, TokenType, ExpiresAtUtc, Scopes, RefreshToken, IdToken);
|
||||
}
|
||||
Reference in New Issue
Block a user