GitLab OAuth

The OAuth connector discovers projects that the authorizing account can read. Its app-policy test checks scopes, identity, and archive retrieval.

Preview

Access

Portal session with owner or admin role; an authorized person then approves the provider connection.

Request

The portal handler starts the provider authorization flow and returns its redirect address.

POST/api/v1/integrations
Synthetic curl example · synthetic values
curl -i -X POST 'https://portal.rfi-irfos.com/api/v1/integrations' \
  -H "Cookie: $PORTAL_SESSION_COOKIE" \
  -H 'Content-Type: application/json' \
  --data '{"provider":"gitlab"}'

Response

The handler returns the provider-specific authorization address.

200 application/json
{"data":{"authorizationUrl":"$SYNTHETIC_AUTHORIZATION_URL"}}

Error codes

400 for an unsupported provider, 401 for a missing session, 403 for insufficient role or workspace access, and 503 when provider configuration is pending.

Evidence

Code evidenceRoute details
lib/gitlab-app.tsSource
app/api/integrations/gitlab/callback/route.tsSource
npm run test:gitlab-app-policyTest · Passed locally

This branch contains source evidence and the listed local test results. Live also requires evidence of production operation; until then the status remains Preview.

Local index↑ ↓ · Enter · Esc