0

Is the any way to authentication the blob-storage service by Azure ad user's info (username and password). I'm using application principal and it's working fine: Code snipet

ClientSecretCredential clientSecretCredential = new ClientSecretCredentialBuilder()
                .clientSecret(clientSecret)
                .clientId(clientId)
                .tenantId(tenantId)
                .build();
        new BlobServiceClientBuilder()
                .credential(clientSecretCredential)
                .endpoint(endpoint)
                .buildClient()
                .getBlobContainerClient(container)
                .getProperties();

And now do we have any change for user's info ?

  • You can use [`UsernamePasswordCredential`](https://learn.microsoft.com/en-us/java/api/com.azure.identity.usernamepasswordcredential?view=azure-java-stable) – Gaurav Mantri Jul 05 '21 at 07:21
  • But UsernamePasswordCredential requireds clientId and tenantId as well. I just try to use username and password only – duy nguyễn Jul 05 '21 at 07:24

0 Answers0