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

refactor: enforce single OAuth2 account binding per platform #59

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

guqing
Copy link
Member

@guqing guqing commented Aug 2, 2024

What this PR does?

限制每个平台的 OAuth2 帐户一次只能连接到一个用户帐户

/kind improvement

限制每个平台的 OAuth2 帐户一次只能连接到一个用户帐户

@f2c-ci-robot f2c-ci-robot bot added kind/improvement Categorizes issue or PR as related to a improvement. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Aug 2, 2024
@f2c-ci-robot f2c-ci-robot bot requested review from JohnNiang and ruibaby August 2, 2024 07:34
Copy link
Member

@ruibaby ruibaby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@f2c-ci-robot f2c-ci-robot bot added the lgtm Indicates that a PR is ready to be merged. label Aug 2, 2024
Copy link
Contributor

@JohnNiang JohnNiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

Copy link

f2c-ci-robot bot commented Aug 2, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JohnNiang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@f2c-ci-robot f2c-ci-robot bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 2, 2024
@f2c-ci-robot f2c-ci-robot bot merged commit 2a03e03 into main Aug 2, 2024
2 checks passed
@ruibaby ruibaby deleted the refactor/29 branch August 2, 2024 08:08
@jrongbin
Copy link

我启用了 gitlab 的 oauth2,

第一个系统用户绑定 gitlab正常,
第二个系统用户绑定 gitlab 时提示已经绑定过账号,要求先解绑,

这个是不是有点问题,按现在这样设计,gitlab,github,gitee,三个都启用起来,一共也只能绑定三个用户。

@guqing
Copy link
Member Author

guqing commented Sep 13, 2024

我启用了 gitlab 的 oauth2,

第一个系统用户绑定 gitlab正常, 第二个系统用户绑定 gitlab 时提示已经绑定过账号,要求先解绑,

这个是不是有点问题,按现在这样设计,gitlab,github,gitee,三个都启用起来,一共也只能绑定三个用户。

这里确实有问题,需要根据 registrationId 和 halo 用户名检查绑定,感谢提出此问题,之前遗漏了没测出来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/improvement Categorizes issue or PR as related to a improvement. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants