AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Options applicable for the Authorization Code Flow with PKCE.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.SharedInterfaces.PkceFlowOptions

Namespace: Amazon.Runtime.SharedInterfaces
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z

Syntax

C#
public class PkceFlowOptions

The PkceFlowOptions type exposes the following members

Constructors

NameDescription
Public Method PkceFlowOptions()

Properties

NameTypeDescription
Public Property GrantTypes System.Collections.Generic.IList<System.String>

List of OAuth grant types that are defined by the client (it's used to restrict the token granting flows available to the client). In addition to authorization_code, refresh_token must be included in order for the SSO Token Manager to be able to refresh the access token before it expires.

Public Property IssuerUrl System.String

Used by Identity Center to issue tokens to registered applications and clients.

Public Property RedirectUri System.String

Redirect URI defined by the client. At completion of authorization, it is used to restrict what location the user agent can be redirected back to.

Public Property RetrieveAuthorizationCodeCallback System.Func<System.Uri, System.String>

The SDK will construct an authorization URL which the client must send an HTTP GET to retrieve the authorization code (as described in RFC 7636). The return value of this delegate will then be used when invoking the CreateToken operation (in addition to the generated code_verifier).

Public Property RetrieveAuthorizationCodeCallbackAsync System.Func<System.Uri, System.Threading.CancellationToken, System.Threading.Tasks.Task<System.String>>

The SDK will construct an authorization URL which the client must send an HTTP GET to retrieve the authorization code (as described in RFC 7636). The return value of this delegate will then be used when invoking the CreateToken operation (in addition to the generated code_verifier).

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer