Skip to content

AssumeRoleWithWebIdentity with MinIO #3711

Answered by ashishdhingra
ceuser1 asked this question in Q&A
Discussion options

You must be logged in to vote

@ceuser1 Good afternoon. Thanks for starting the discussion. You may try using a customer HttpHandler as demonstrated in video AWS re:Invent 2023 - Getting the most performance for your .NET apps from AWS SDK for .NET (XNT401).

Below is the sample code:

using Amazon.Runtime;
using Amazon.SecurityToken;
using Amazon.SecurityToken.Model;

Amazon.AWSConfigs.HttpClientFactory = new CustomHttpClientFactory();

var config = new AmazonSecurityTokenServiceConfig
{
    ServiceURL = "http://localhost:19008",
};
var client = new AmazonSecurityTokenServiceClient("dummy", "dummy", config);
var request = new AssumeRoleWithWebIdentityRequest
{
    DurationSeconds = 3600,
    WebIdentityToken = "... OIDC…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ceuser1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants