Skip to content

app/: GitLab sign-in (sc-8900) - #55

Merged
ndbroadbent merged 2 commits into
mainfrom
laravel-gitlab
Dec 2, 2026
Merged

ndbroadbent merged 2 commits into
mainfrom
laravel-gitlab

Conversation

@ndbroadbent

Copy link
Copy Markdown
Member

Stacked on #53. GitLab sign-in for the Laravel Rust app, ported from server/src/forge/gitlab.rs.

  • Social login gets a gitlab provider: VisualCI's own OAuth application on VISUALCI_GITLAB_URL (default gitlab.com), with GITLAB_CLIENT_ID and GITLAB_CLIENT_SECRET and the scopes read_user read_api, as today.
  • The profile comes from /api/v4/user. A confirmed account's primary and commit addresses count as verified.
  • forge::gitlab::sign_in reads the projects the person can reach (membership=true&min_access_level=20), with their access level mapped as today: Owner → admin, Maintainer → maintain, Developer → write, Reporter → read.
  • /auth/gitlab and its callback go through the same handler as GitHub.
  • Not yet: self-managed GitLab instances that organizations register. Their OAuth applications live in the database, and social login's providers are fixed at boot, so they'll need a provider looked up per request.

Test: a GitLab sign-in makes an account from the confirmed address, with the GitLab identity. All 15 app tests pass, and clippy is clean.

@visualci-com

visualci-com Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #258 · 331 unchanged · no changes

This PR vs base: 2 changed since #196, across 5 builds

Updated as builds change. Agents can review with VisualCI's MCP tools.

…LCI_GITLAB_URL, default gitlab.com; GITLAB_CLIENT_ID/SECRET; read_user read_api), a confirmed account's addresses as verified, and the projects the person can reach with their access level; ported from server/src/forge/gitlab.rs. Self-managed instances registered by organizations come later
…re trusted to match an account by email; any other instance's identities carry its base URL as their site, so its addresses never match (its admins can set any address); tested for an unconfirmed address and a self-managed instance
@ndbroadbent
ndbroadbent merged commit 44481d4 into main Dec 2, 2026
11 checks passed
@ndbroadbent
ndbroadbent deleted the laravel-gitlab branch December 2, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant