Code Monkey home page Code Monkey logo

Comments (2)

dscpinheiro avatar dscpinheiro commented on July 18, 2024

Kerberos is not supported directly, but you have access to how the HttpClient is created.

This blog post has details on how to authenticate with Kerberos using .NET, you should be able to do something similar using the SDK's HttpClientFactory:

using Amazon;
using Amazon.Runtime;
using Amazon.S3;
using System.Net;

class KerberosClientFactory : HttpClientFactory
{
    public override HttpClient CreateHttpClient(IClientConfig clientConfig)
    {
        var credentialsCache = new CredentialCache { ... };
        var httpClientHandler = new HttpClientHandler { ... };

        return new HttpClient(httpClientHandler);
    }
}

AWSConfigs.HttpClientFactory = new KerberosClientFactory();
var s3 = new AmazonS3Client();
await s3.ListBucketsAsync();

This re:Invent talk from last year has more details on HttpClientFactory: https://www.youtube.com/watch?v=t3swORUjuBk&t=683s

from aws-sdk-net.

github-actions avatar github-actions commented on July 18, 2024

This issue has not received a response in 5 days. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled.

from aws-sdk-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.