Skip to content

Database Connectors Configuration

Ephrim Stanley edited this page Apr 1, 2022 · 1 revision

Overview

This document describes various aspects of database connectors.

Authentication Flow Provider

The "authentication flow provider" abstraction attempts to abstract the complexity of obtaining a database credential from the act of using the credential to acquire a connection.

As a concrete example, for a database that supports OAuth, depending on the identity of the caller, Legend might have to execute different business logic to obtain the OAuth token. This "business logic" is implemented via the flow provider.

See https://github.com/finos/legend-engine/blob/master/legend-engine-executionPlan-execution-store-authentication/src/main/java/org/finos/legend/engine/authentication/LegendDefaultDatabaseAuthenticationFlowProvider.java

Authentication Flow Provider Configuration

See https://github.com/finos/legend/wiki/Plan-Executor-Configuration for how the plan executor can be configured with a flow provider.