Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Duende.​IdentityModel.​Client.​TokenExchangeTokenRequest

Assembly: Duende.IdentityModel

Inheritance: object → System.​Net.​Http.​HttpRequestMessageProtocolRequestTokenRequest → TokenExchangeTokenRequest

Implemented Interfaces

Request for token using urn:ietf:params:oauth:grant-type:token-exchange

Properties

public string
Resource
OPTIONAL. A URI that indicates the target service or resource.
public string
Audience
OPTIONAL. The logical name of the target service where the client intends to use the requested security token.
public string
Scope
OPTIONAL. Space separated list of the requested scopes
public string
RequestedTokenType
OPTIONAL. An identifier for the type of the requested security token.
public string
SubjectToken
REQUIRED. A security token that represents the identity of the party on behalf of whom the request is being made.
public string
SubjectTokenType
REQUIRED. An identifier that indicates the type of the security token in the "subject_token" parameter.
public string
ActorToken
OPTIONAL. A security token that represents the identity of the acting party.
public string
ActorTokenType
An identifier that indicates the type of the security token in the "actor_token" parameter. This is REQUIRED when the "actor_token" parameter is present in the request but MUST NOT be included otherwise.
public string
GrantType
Gets or sets the type of the grant.
public string
Address
Gets or sets the endpoint address (you can also set the RequestUri instead or leave blank to use the HttpClient base address).
public string
ClientId
Gets or sets the client identifier.
public string
ClientSecret
Gets or sets the client secret.
ClientAssertion
Gets or sets the client assertion.
ClientCredentialStyle
Gets or sets the client credential style (post body vs authorization header).
AuthorizationHeaderStyle
Gets or sets the basic authentication header style (classic HTTP vs OAuth 2).
public string
DPoPProofToken
The DPoP proof token to use on the token endpoint.
Gets or sets a factory function that creates a fresh <see cref="P:Duende.IdentityModel.Client.ProtocolRequest.ClientAssertion" /> on demand. When set, this factory is stored on the <see cref="T:System.Net.Http.HttpRequestMessage" /> options so that DPoP retry handlers can invoke it to obtain a new assertion (with a fresh <c>jti</c> and <c>iat</c> ) on each attempt, avoiding client-assertion replay rejected by servers that enforce uniqueness.
public Parameters
Parameters
Gets or sets additional protocol parameters.
Properties
public System.​Uri
RequestUri
Version

Methods

Clone​()
Inherited from ProtocolRequest
Clones this instance.
public T
Clone​()
Inherited from ProtocolRequest
Clones this instance.
public void
Prepare​()
Inherited from ProtocolRequest
Applies protocol parameters to HTTP request
public void
Dispose​()
protected void
Dispose​(bool disposing)
public string
ToString​()
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object