Hello Liquibase Experts,
I wanted to know, does liquibase support CosmosDB having AD/SPN based authentication ?
I see the documentation has details with key based authentication: CosmosDB - contribute.liquibase.com
Please advice if liquibase support CosmosDB having AD/SPN based authentication is in the Roadmap ?
Suggestion :
if ("aad".equalsIgnoreCase(authMode)) {
TokenCredential credential = buildTokenCredentialFromConfig();
client = new CosmosClientBuilder()
.endpoint(accountEndpoint)
.credential(credential)
.consistencyLevel(ConsistencyLevel.SESSION)
.buildClient();
} else {
client = new CosmosClientBuilder()
.endpoint(accountEndpoint)
.key(accountKey)
.consistencyLevel(ConsistencyLevel.SESSION)
.buildClient();
}