Skip to content

Support for AD based Auth for Cosmos CoreSQL API instead of Key based #396

@riazuddinf

Description

@riazuddinf

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();
}

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