Class SSOAWSCredentials
AWS Credentials that resolve using AWS SSO.
public class SSOAWSCredentials : RefreshingAWSCredentials, IDisposable
- Inheritance
-
SSOAWSCredentials
- Implements
- Inherited Members
Constructors
SSOAWSCredentials(string, string, string, string)
Constructs an SSOAWSCredentials object.
public SSOAWSCredentials(string accountId, string region, string roleName, string startUrl)
Parameters
accountId
stringThe AWS account ID that temporary AWS credentials will be resolved for.
region
stringThe AWS region where the SSO directory for
startUrl
is hosted.roleName
stringThe corresponding IAM role in the AWS account that temporary AWS credentials will be resolved for.
startUrl
stringThe main URL for users to login to their SSO directory.
SSOAWSCredentials(string, string, string, string, SSOAWSCredentialsOptions)
Constructs an SSOAWSCredentials object.
public SSOAWSCredentials(string accountId, string region, string roleName, string startUrl, SSOAWSCredentialsOptions options)
Parameters
accountId
stringThe AWS account ID that temporary AWS credentials will be resolved for.
region
stringThe AWS region where the SSO directory for
startUrl
is hosted.roleName
stringThe corresponding IAM role in the AWS account that temporary AWS credentials will be resolved for.
startUrl
stringThe main URL for users to login to their SSO directory.
options
SSOAWSCredentialsOptionsOptions to be used in the SSO flow to resolve credentials.
Properties
AccountId
The AWS account ID that temporary AWS credentials will be resolved for.
public string AccountId { get; }
Property Value
Options
Options to be used in the SSO flow to resolve credentials. Developers wishing to support AWS SSO would want to provide the following:
public SSOAWSCredentialsOptions Options { get; }
Property Value
Region
The AWS region where the SSO directory for StartUrl is hosted.
public string Region { get; }
Property Value
RoleName
The corresponding IAM role in the AWS account that temporary AWS credentials will be resolved for.
public string RoleName { get; }
Property Value
StartUrl
The main URL for users to login to their SSO directory. Provided by the SSO service via the web console.
public string StartUrl { get; }
Property Value
Methods
GenerateNewCredentials()
protected override RefreshingAWSCredentials.CredentialsRefreshState GenerateNewCredentials()
Returns
GenerateNewCredentialsAsync()
protected override Task<RefreshingAWSCredentials.CredentialsRefreshState> GenerateNewCredentialsAsync()
Returns
HasCachedAccessTokenAvailable(string)
Returns true if there is already a non-expired cached login access token in the token cache.
[Obsolete("This method is no longer used or supported and will be removed in a future version.", false)]
public static bool HasCachedAccessTokenAvailable(string startUrl)
Parameters
startUrl
string
Returns
- bool
Obsolete: ALWAYS RETURNS FALSE