weaveworks / weave-gitops-enterprise

This repo provides the enterprise level features for the weave-gitops product, including CAPI cluster creation and team workspaces.
https://docs.gitops.weave.works/
Apache License 2.0
160 stars 29 forks source link

Error completing OAuth2.0 flow on gitlab saas #1100

Open saeedfazal opened 2 years ago

saeedfazal commented 2 years ago

The nightly tests using Gitlab SAAS git provider fail due to Error completing OAuth2.0 flow.

https://github.com/weaveworks/weave-gitops-enterprise/runs/7350314934?check_suite_focus=true

The cause and solution similar to this sort of error discussed in this post: https://support.hashicorp.com/hc/en-us/articles/1500001457201-Gitlab-The-provided-authorization-grant-is-invalid-expired-revoked-does-not-match-the-redirection-URI-used-in-the-authorization-request-or-was-issued-to-another-client-

6IQEL0cHOHtgm9lD.png

https://app.zenhub.com/files/397340252/2f689a4b-4c20-4d87-a255-1ec9f2396c5f/download

Cluster-service log snip:
{"level":"error","ts":1657846380.9499252,"logger":"gitops","caller":"middleware/middleware.go:39","msg":"server error","error":"could not exchange code: code=400, error=invalid_grant, description=The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."}
{"level":"info","ts":1657846380.9502516,"logger":"gitops","caller":"middleware/middleware.go:65","msg":"server error","uri":"/v1/applications/auth_providers/gitlab/authorize","status":500}
LappleApple commented 11 months ago

Is this still an issue?