customerSAX Docs
Service Documentation

auth

Login, sessions and project selection — the platform's identity source.

At a glance

Package@csa/auth
Port4360
Frameworkplain node:http (not federated)
DataMongoDB (users, sessions)

Responsibilities

  • Login & sessions — create and read sessions; the studio stores the session in the csa_session cookie.
  • Project selection — set the active project/client for a session, which the studio injects into downstream BFF calls.
  • Identity source of truth — GET /sessions/current is what the studio's proxy layer trusts when stamping project/client/role headers.

Interface

REST over JSON (see Auth REST):

  • POST /sessions — create a session
  • GET /sessions/current — current session
  • POST /sessions/current/project — select active project

Why it's separate

Auth is intentionally not a GraphQL subgraph. It sits beside the federation, so session resolution is a simple, synchronous REST call the studio server makes before any proxied data request.

On this page