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

Login, OAuth: login error if system (local) username matches GitHub username #996

Open
s373r opened this issue Dec 18, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@s373r
Copy link
Member

s373r commented Dec 18, 2024

Describe the bug

  • If a multi-tenant workspace is created, a system user is also created (password provider).
  • When trying to log in, it tries to create a new account, but for the oauth_github provider
  • Subsequently, it creates problems in the authorization process:
    • Credentials are already used by an existing account

image

Steps To Reproduce

  • kamu-cli part:
kamu init --multi-tenant

KAMU_AUTH_GITHUB_CLIENT_ID=361a3b4fda86d0234d2f \
KAMU_AUTH_GITHUB_CLIENT_SECRET=465849325236ed49253993744069e1bec6808554 \
kamu \
  system api-server \
  --address 0.0.0.0 \
  --http-port 8080 \
  --get-token
  • kamu-web-ui part:
    • Login via GitHub

Current Behavior

Credentials are already used by an existing account

Expected Behavior

No errors

kamu system info

latest (v0.213.0)

Logs

No response

Anything else?

Solution: need to update the indexes in the account table

@s373r s373r added the bug Something isn't working label Dec 18, 2024
@s373r s373r self-assigned this Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant