• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive-cloud-ui / 20930401680 / 1
79%
main: 79%

Build:
DEFAULT BRANCH: main
Ran 12 Jan 2026 06:24PM UTC
Files 50
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Jan 2026 06:23PM UTC coverage: 78.613% (+5.6%) from 72.998%
20930401680.1

push

github

web-flow
feat(auth): support postgreSQL db for auth in the docker compose command (#247)

* feat(auth): add PostgreSQL database layer for Better Auth

- Create db.ts with connection pool and query helpers
- Add init.sql for automatic schema creation on Docker startup
- Support for user, session, account, verification tables

* feat(docker): add auth-db service with auto-init schema

- Add PostgreSQL container for session storage
- Mount init.sql for automatic schema creation
- Configure DATABASE_URL for cloud-ui service

* feat(auth): add DATABASE_URL and OidcUserInfo type

- Add DATABASE_URL constant for PostgreSQL connection
- Add COOKIE_SECURE for environment-based cookie config
- Add OidcUserInfo interface for user info extraction

* feat(auth): add cookie chunking and getUserInfo helpers

- Implement cookie chunking for large OIDC tokens (stateless mode)
- Add getUserInfoFromIdToken for Azure AD claim extraction
- Add fetchUserInfoFromEndpoint for standard OIDC userinfo

* refactor(auth): support dual mode (database + stateless)

- Configure Better Auth for database or cookie mode based on DATABASE_URL
- Add custom getUserInfo handler for Azure AD compatibility
- Refactor token refresh to use db.ts helpers
- Support both database and cookie-based token storage

* feat(auth): update actions and routes for dual mode

- Update refresh-token route for database/cookie modes
- Add clearOidcTokenAction for stateless logout
- Update auth-client signOut for cookie cleanup

* test(auth): update tests for db.ts refactoring

- Update log message assertions for [DB] and [Token] prefixes
- Import refreshAccessToken from token.ts instead of auth.ts

* chore(deps): add pg for PostgreSQL session storage

* docs: update README with Docker Compose auth-db and configuration options

- Add DATABASE_URL to optional environment variables
- Document all Docker Compose services including auth-db
- Add section for external API configuration
- Document configuration combinations ta... (continued)

258 of 338 branches covered (76.33%)

422 of 527 relevant lines covered (80.08%)

11.15 hits per line

Source Files on job 20930401680.1
  • Tree
  • List 50
  • Changed 6
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 20930401680
  • b86adfd2 on github
  • Prev Job for on main (#20789330531.1)
  • Next Job for on main (#21070903551.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc