Skip to content

WithSSL(false) is ignored with MinioClientFactory #878

@fabientrissie

Description

@fabientrissie

Hi, I think there is an issue when we want to inject a Minio client without using SSL.

Here's my code in my program.cs

builder.Services.AddMinio(client =>
{
client.WithEndpoint(endpoint)
.WithCredentials(accessKey, secretKey)
.WithSSL(false)
.Build();
});

But the client always have secure to True in my service classes.

I check the source code and I can this in "MinioClientFactory.cs" line 40 this code, and I think my configuration is ignored because of that :

var client = new MinioClient()
.WithSSL();

configureClient(client);

Thanks for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions