Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitsources: split oauth2Client from gitsource #403

Merged
merged 1 commit into from
May 12, 2023

Conversation

sgotti
Copy link
Member

@sgotti sgotti commented May 12, 2023

Split an oauth2Client from the gitsource. While the gitsource creates a client to the remote source an Oauth2Client doesn't requires a client to the remote sources but only handles the oauth2 flow.

This also fixes an issue with gitea 1.14 (fixed in later gitea versions) where the /version endpoint requires authentication but during the oauth2 flow we don't have any auth data and so we cannot create the gitea client because during gite client creation a call to the version endpoint is done and returns an error.

Split an oauth2Client from the gitsource. While the gitsource creates a
client to the remote source an Oauth2Client doesn't requires a client to
the remote sources but only handles the oauth2 flow.

This also fixes an issue with gitea 1.14 (fixed in later gitea versions)
where the /version endpoint requires authentication but during the
oauth2 flow we don't have any auth data and so we cannot create the
gitea client because during gite client creation a call to the version
endpoint is done and returns an error.
@sgotti sgotti force-pushed the gitsources_split_oauth2_client branch from dca8938 to 05588b1 Compare May 12, 2023 12:03
@sgotti sgotti merged commit ea2bd9f into agola-io:master May 12, 2023
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