auth "gitlab-duo-agent" {
	name "GitLab Duo Agent"
	env "GITLAB_TOKEN"
	login "oauth-code" {
		client-id "36f2a70cddeb5a0889d4fd8295c241b7e9848e89cf9e599d0eed2d8e5350fbf5"
		authorize-url "https://gitlab.com/oauth/authorize"
		scopes "api"
		pkce #true
		instructions "Complete GitLab login in your browser. This uses GitLab's official VS Code OAuth application. If the redirect opens VS Code instead of returning to OMP, copy the full vscode://gitlab.gitlab-workflow/authentication?... callback URL from VS Code/browser and paste it back into OMP."
		callback port=0 redirect-uri="vscode://gitlab.gitlab-workflow/authentication" manual-only=#true
		token url="https://gitlab.com/oauth/token" body="form"
		credential {
			access "access_token"
			refresh "refresh_token"
			expires "seconds" path="expires_in" from="created_at" skew-ms=300000
		}
	}
	refresh {
		token url="https://gitlab.com/oauth/token" body="form" {
			params { redirect_uri "{redirect_uri}" }
		}
	}
}
