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

[Bug]: Oauth providers not visible after switching to ENTERPRISE mode #1379

Open
1 task done
martkaczmarek opened this issue Dec 5, 2024 · 3 comments
Open
1 task done
Assignees
Labels
Bug Something isn't working

Comments

@martkaczmarek
Copy link
Contributor

martkaczmarek commented Dec 5, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After switching my local installation (2.5.1) to ENTERPRISE mode from SAAS, I cannot log into Lowcoder using proviously available Oauth provider. Even after creating a new provider, it's not visible on the list nor on the login form. API endpoint also only returns EMAIL type login:

{
    "code": 1,
    "message": "",
    "data": {
        "authConfigs": [
            {
                "authType": "FORM",
                "id": "EMAIL",
                "enable": false,
                "enableRegister": true,
                "source": "EMAIL",
                "sourceName": "EMAIL",
                "authType": "FORM"
            }
        ],
        "workspaceMode": "ENTERPRISE",
        "selfDomain": false,
        "cookieName": "LOWCODER_CE_SELFHOST_TOKEN",
        "cloudHosting": false
    },
    "success": true
}

Applications, data sources, saved queries, logins and user groups seem to correctly transfer from SAAS organisation.
Interestingly, the user's e-mail binding to Oauth identity seems to still be working - after logging in with email/password, I can still access data in application that would normally require the Oauth credentials.
It's important to note I have not checked whether it happens with clean ENTERPRISE installation.

Expected Behavior

Oauth providers should carry over to SAAS mode

Steps to reproduce

  1. Create multi-Docker installation in SAAS mode
  2. Create one organisation
  3. Create Oauth provider
  4. Change mode to ENTERPRISE
  5. Restart docker instances and try to login - only a Email login is possible (if it's enabled)
  6. Login as admin
  7. Go to Providers configuration page and create another provider
  8. Provider does not appear on the list

Environment

Lowcoder multi-docker, 2.5.1

Additional Information

No response

@adnanqaops
Copy link
Collaborator

On ENTERPRISE Mode, I ( as Admin / Super Admin ) can add and see OAuth Providers , successfully. I have checked it locally.

@adnanqaops adnanqaops added the Bug Something isn't working label Dec 9, 2024
@adnanqaops adnanqaops moved this to 🆕 New in Lowcoder Dec 9, 2024
@martkaczmarek
Copy link
Contributor Author

@adnanqaops was it on a clean install or after change from SAAS to ENTERPRISE?
My scenario occurs after changing my installation from SAAS to ENTERPRISE.

I managed to test it in clean install and it shows up.

@ill-git
Copy link

ill-git commented Dec 10, 2024

Maybe this helps:

  1. I created a new installation using SAAS and just signed up with an admin
  2. Switched to ENTERPRISE Mode
  3. logged in with the admin
  4. added an oauth-provider > got a success toast, but provider doesn't show up in the list. only the e-mail provider is in there
  5. repeated to add a provider > got again a success toast, but doesn't show up in the list
  6. switched back to SAAS
  7. logged in with the admin
  8. my added provider both are in the list

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
Status: 🆕 New
Development

No branches or pull requests

4 participants