Class TokenRequest

Assembly: redb.Identity.Grpc.dll
public sealed class TokenRequest : IMessage<TokenRequest>, IEquatable<TokenRequest>, IDeepCloneable<TokenRequest>, IBufferMessage, IMessage

Inheritance

Object→TokenRequest

Implements

TokenRequest}TokenRequest}TokenRequest}IBufferMessageIMessage

Properties

Additional

Any parameter this contract does not name — extension grants, vendor parameters, future RFCs.

public MapField<string, string> Additional { get; }

ClientId

public string ClientId { get; set; }

ClientSecret

public string ClientSecret { get; set; }

Code

authorization_code

public string Code { get; set; }

CodeVerifier

public string CodeVerifier { get; set; }

Descriptor

public static MessageDescriptor Descriptor { get; }

DeviceCode

urn:ietf:params:oauth:grant-type:device_code

public string DeviceCode { get; set; }

GrantType

public string GrantType { get; set; }

Parser

public static MessageParser<TokenRequest> Parser { get; }

Password

public string Password { get; set; }

RedirectUri

public string RedirectUri { get; set; }

RefreshToken

refresh_token

public string RefreshToken { get; set; }

Scope

public string Scope { get; set; }

Username

password (ROPC)

public string Username { get; set; }

Methods

CalculateSize()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

public int CalculateSize()

Clone()

Creates a deep clone of this object.

public TokenRequest Clone()

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object other)

Equals(TokenRequest)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(TokenRequest other)

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

MergeFrom(CodedInputStream)

Merges the data from the specified coded input stream with the current message.

public void MergeFrom(CodedInputStream input)

MergeFrom(TokenRequest)

Merges the given message into this one.

public void MergeFrom(TokenRequest other)

ToString()

Returns a string that represents the current object.

public override string ToString()

WriteTo(CodedOutputStream)

Writes the data to the given coded output stream.

public void WriteTo(CodedOutputStream output)

Constructors