Skip to main content

Connecting and Authentication Patterns

Makes Lakebase connections production-grade. Following the lecture-demo pattern, learners compare OAuth tokens and native passwords, handle the 60-minute token lifetime with refresh, and build a token-refreshing connection pool in both SQLAlchemy and raw psycopg — sized against the endpoint's connection ceiling and observed through pg_stat_activity. The course concludes with the Lakebase Data API, showing how the authenticator role brokers identity via SET ROLE to enforce the same privilege model over HTTP.

Skill Level
Associate
Duration
1h
Prerequisites

The content was developed for participants with these skills/knowledge/abilities:  

• Comfort reading and writing Python, including classes

• Ability to connect to Lakebase with psycopg (from LB-103)


Suggested prior course: LB-103 First Steps — establishes the basic psycopg connection this course hardens for production.

Self-Paced

Custom-fit learning paths for data, analytics, and AI roles and career paths through on-demand videos

See all our registration options

Registration options

Databricks has a delivery method for wherever you are on your learning journey

Runtime

Self-Paced

Custom-fit learning paths for data, analytics, and AI roles and career paths through on-demand videos

Register now

Instructors

Instructor-Led

Public and private courses taught by expert instructors across half-day to two-day courses

Register now

Learning

Blended Learning

Self-paced and weekly instructor-led sessions for every style of learner to optimize course completion and knowledge retention. Go to Subscriptions Catalog tab to purchase

Purchase now

Scale

Skills@Scale

Comprehensive training offering for large scale customers that includes learning elements for every style of learning. Inquire with your account executive for details

Upcoming Public Classes

Questions?

If you have any questions, please refer to our Frequently Asked Questions page.