Class ProfileTokenProvider
Looks for a AWS Profile and then passes token resolution to SSOTokenProvider.
This provider requires .NET 4.5 or newer.public class ProfileTokenProvider : IAWSTokenProvider
  - Inheritance
 - 
      
      ProfileTokenProvider
 
- Implements
 
- Inherited Members
 
Constructors
ProfileTokenProvider(ISSOTokenProviderFactory, ICredentialProfileSource, string)
public ProfileTokenProvider(ISSOTokenProviderFactory ssoTokenProviderFactory, ICredentialProfileSource credentialProfileSource, string profileName = null)
  Parameters
ssoTokenProviderFactoryISSOTokenProviderFactorycredentialProfileSourceICredentialProfileSourceprofileNamestring
ProfileTokenProvider(string)
public ProfileTokenProvider(string profileName = null)
  Parameters
profileNamestring
Methods
TryResolveTokenAsync(CancellationToken)
Attempts to load an AWSToken.
NOTE: In some extreme circumstances, providers may throw an exception.public Task<TryResponse<AWSToken>> TryResolveTokenAsync(CancellationToken cancellationToken = default)
  Parameters
cancellationTokenCancellationToken