Grant GitLab api scope (browser flow, signed in)
GET /auth/gitlab/consent
Incremental consent: redirects to GitLab asking for the api scope, which repo listing and MR reviews need, and returns to /repos (or /barista/setup with ?next=barista). Without a session, redirects to /signin.
Request
Parameters
next(query, "repos" | "barista")
Responses
302
Redirect to the GitLab authorize page, or /signin
default
Error as { error: { code, message } }
error(object, required)code("unauthorized" | "forbidden" | "not_found" | "invalid" | "conflict" | "rate_limited" | "cross_site" | "upstream", required)message(string, required)
Example
curl -X GET \
https://cupof.ai/auth/gitlab/consent