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

How to remove github, google, facebook in login form? #28171

Closed
xuanbin7manu opened this issue Oct 9, 2024 · 2 comments
Closed

How to remove github, google, facebook in login form? #28171

xuanbin7manu opened this issue Oct 9, 2024 · 2 comments
Labels
A-Login T-Enhancement T-Other Questions, user support, anything else

Comments

@xuanbin7manu
Copy link

xuanbin7manu commented Oct 9, 2024

How to remove github, google, facebook... button in login form? Only allow login with home server account.

Login
@dosubot dosubot bot added A-Login T-Other Questions, user support, anything else labels Oct 9, 2024
@t3chguy
Copy link
Member

t3chguy commented Oct 9, 2024

Those are controlled by the Matrix homeserver, matrix.org as in your screenshot instructs the client to show them via the Matrix API:

 ~  curl https://matrix.org/_matrix/client/v3/login -s | jq .                                                                                      796ms  Wed  9 Oct 18:52:50 2024
{
  "flows": [
    {
      "type": "m.login.sso",
      "identity_providers": [
        {
          "id": "oidc-github",
          "name": "GitHub",
          "icon": "mxc://matrix.org/sVesTtrFDTpXRbYfpahuJsKP",
          "brand": "github"
        },
        {
          "id": "oidc-google",
          "name": "Google",
          "icon": "mxc://matrix.org/ZlnaaZNPxtUuQemvgQzlOlkz",
          "brand": "google"
        },
        {
          "id": "oidc-gitlab",
          "name": "GitLab",
          "icon": "mxc://matrix.org/MCVOEmFgVieKFshPxmnejWOq",
          "brand": "gitlab"
        },
        {
          "id": "oidc-facebook",
          "name": "Facebook",
          "icon": "mxc://matrix.org/nsyeLIgzxazZmJadflMAsAWG",
          "brand": "facebook"
        },
        {
          "id": "oidc-apple",
          "name": "Apple",
          "icon": "mxc://matrix.org/QQKNSOdLiMHtJhzeAObmkFiU",
          "brand": "apple"
        }
      ]
    },
    {
      "type": "m.login.token"
    },
    {
      "type": "m.login.password"
    },
    {
      "type": "m.login.application_service"
    }
  ]
}

They cannot be hidden by Element config as what if the server only supports SSO login, like the Mozilla homeserver for example.

@t3chguy t3chguy closed this as not planned Won't fix, can't repro, duplicate, stale Oct 9, 2024
@xuanbin7manu
Copy link
Author

@t3chguy thank you for reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Login T-Enhancement T-Other Questions, user support, anything else
Projects
None yet
Development

No branches or pull requests

2 participants