Class ClientCredentialsTokenResponse
- Namespace
- Cratis.Arc.Connections
- Assembly
- Cratis.Arc.Core.dll
Represents the parts of an OAuth 2.0 token response ClientCredentialsAccessTokenProvider reads.
public record ClientCredentialsTokenResponse : IEquatable<ClientCredentialsTokenResponse>
- Inheritance
-
ClientCredentialsTokenResponse
- Implements
- Inherited Members
- Extension Methods
Constructors
ClientCredentialsTokenResponse(ClientCredentialsTokenResponse)
protected ClientCredentialsTokenResponse(ClientCredentialsTokenResponse original)
Parameters
originalClientCredentialsTokenResponse
ClientCredentialsTokenResponse(string?, long?)
Represents the parts of an OAuth 2.0 token response ClientCredentialsAccessTokenProvider reads.
public ClientCredentialsTokenResponse(string? AccessToken, long? ExpiresIn)
Parameters
AccessTokenstringThe issued access token.
ExpiresInlong?The lifetime of the token in seconds, if given.
Properties
AccessToken
The issued access token.
[JsonPropertyName("access_token")]
public string? AccessToken { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
ExpiresIn
The lifetime of the token in seconds, if given.
[JsonPropertyName("expires_in")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
public long? ExpiresIn { get; init; }
Property Value
- long?
Methods
Deconstruct(out string?, out long?)
public void Deconstruct(out string? AccessToken, out long? ExpiresIn)
Parameters
Equals(ClientCredentialsTokenResponse?)
public virtual bool Equals(ClientCredentialsTokenResponse? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ClientCredentialsTokenResponse?, ClientCredentialsTokenResponse?)
public static bool operator ==(ClientCredentialsTokenResponse? left, ClientCredentialsTokenResponse? right)
Parameters
Returns
operator !=(ClientCredentialsTokenResponse?, ClientCredentialsTokenResponse?)
public static bool operator !=(ClientCredentialsTokenResponse? left, ClientCredentialsTokenResponse? right)