Table of Contents

Class TokenContainer

Namespace
ModelContextProtocol.Authentication
Assembly
ModelContextProtocol.Core.dll

Represents a cacheable combination of tokens ready to be used for authentication.

public sealed class TokenContainer
Inheritance
TokenContainer
Inherited Members

Properties

AccessToken

Gets or sets the access token.

public required string AccessToken { get; set; }

Property Value

string

ExpiresIn

Gets or sets the number of seconds until the access token expires.

public int? ExpiresIn { get; set; }

Property Value

int?

ObtainedAt

Gets or sets the timestamp when the token was obtained.

public required DateTimeOffset ObtainedAt { get; set; }

Property Value

DateTimeOffset

RefreshToken

Gets or sets the refresh token.

public string? RefreshToken { get; set; }

Property Value

string

Scope

Gets or sets the scope of the access token.

public string? Scope { get; set; }

Property Value

string

TokenType

Gets or sets the token type (typically "Bearer").

public required string TokenType { get; set; }

Property Value

string