Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/actions/start-test-server/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ runs:
run: go build -o test-server ./cmd/test-server
shell: bash
- name: Start test server
run: ./test-server &
# Pass the SCIM bearer through so the mock's -scim-token stays in lockstep
# with BATON_LUCID_SCIM_TOKEN. The mock requires distinct REST/SCIM tokens;
# if these diverge, every SCIM route 401s. Falls back to the mock's own
# default when the var is unset (e.g. a fork without repo secrets).
run: ./test-server -scim-token "${BATON_LUCID_SCIM_TOKEN:-test-scim-token}" &
shell: bash
- name: Wait for test server
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ env:
BATON_LOG_LEVEL: debug
# Credentials + endpoints for the in-process mock (cmd/test-server). No real
# Lucid tenant, OAuth credentials, or rotating refresh token are involved: the
# mock serves the OAuth2 token endpoint, the REST API and SCIM. Any non-empty
# bearer is accepted. The connector derives the OAuth token URL from BATON_BASE_URL.
# mock serves the OAuth2 token endpoint, the REST API and SCIM. As in
# production, the REST and SCIM surfaces require DIFFERENT bearer tokens: the
# mock rejects the SCIM token on REST routes and enforces BATON_LUCID_SCIM_TOKEN
# on SCIM routes, so it is passed through to the mock's -scim-token by the
# start-test-server action. The connector derives the OAuth token URL from BATON_BASE_URL.
BATON_LUCID_API_KEY: test-api-key
BATON_LUCID_CLIENT_ID: test-client-id
BATON_LUCID_CLIENT_SECRET: test-client-secret
Expand Down
Loading
Loading