-
Notifications
You must be signed in to change notification settings - Fork 45
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
SSO login doesn't work for custom profile #268
Comments
Update: it has been confirmed as issue with the flatpak, element-hq/element-web#21841 (comment). |
I just tried to reproduce this with the latest flatpak build and my homeserver, and at least here SSO worked completely fine, with and without specifying The start command I used was |
I just tried again with |
I just performed |
Is it possible that something strips the parameters of the URL passed to Element? Maybe some adblocker/URL cleaner? What browser do you use to authenticate? If you want, you could build a Element version that logs the domain before starting Element by adding a line Line 10 in 3e0914d
Maybe "authentik" strips something important, so it might also be worth to check if e.g. the Mozilla or Fedora homeserver works for you? |
I don't think so.
I disabled them all without luck (in Firefox).
I was originally using Microsoft Edge, but I am consistently reproducing this also on Mozilla Firefox 100.0b8 (developer edition). I am on Wayland/Sway if that has effect, except that Element is in xwayland (#229). The difference between Edge and Firefox is that Firefox asks which application to open the Element link in, which has no effect.
I don't know how to build flatpaks and I don't want to maintain one by myself.
I don't think so, Authentik is the SSO provider/system pikaviestin.fi uses for logging in.
I don't have an account on either to my knowledge and I don't think I am affiliated with them enough for me using them to be justified. If I do have a Fedora homeserver account, I would be affected by fedora-infra/noggin#105 as I have no desire to bring my "deadnick" there, which is older than Matrix itself. |
Ah, do you have |
I don't know where it should be specified, but it was appearing in Afterwards I specified it in front of the command, without change:
In case the In case it's helpful, I start sway by a wrapper script #!/usr/bin/env bash
# Starting sway with proper environment too. My {bash,zsh}rc handles
# exec
set -x
# Using fcitx
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE="fcitx"
export QT_IM_MODULE="fcitx"
# qt5ct allows theme choosing
export QT_QPA_PLATFORMTHEME="qt5ct"
# Ensuring Wayland gets used as per Arch Wiki
# 2021-02-28 https://wiki.archlinux.org/index.php/Wayland#GUI_libraries
export QT_QPA_PLATFORM=wayland
export CLUTTER_BACKEND=wayland
export SDL_VIDEODRIVER=wayland
# Mozilla Products
export MOZ_ENABLE_WAYLAND=1
dbus-launch --exit-with-session sway --unsupported-gpu $@
set +x |
Actually here is the same thing in English:
For some reason Element itself doesn't seem to respect LC_ALL as the UI stayed in Finnish, but at least the terminal messages changed language. |
I have Arch Linux with wayland KDE and use Element from flatpak. I get this:
Seems to be the same error. |
Workaround: in the "Continue to your account", instead of clicking the blue button [with white text], right click it and select copy link. Then open a terminal [or your preferred launcher/runner] and enter |
This is copy-paste from element-hq/element-web#21841 as I am unable to try officially supported release as I don't have either Debian or Ubuntu available. I am thus unable to test whether this is an issue with flatpak or upstream.
Steps to reproduce
flatpak run im.riot.Riot --profile pikaviestin
https://pikaviestin.fi/
Continue with authentik
Outcome
What did you expect?
I expected Element to be logged in.
What happened instead?
I got a different Element instance with a different profile.
Operating system
Fedora release 36 (Thirty Six)
Application version
1.10.10 ?
How did you install the app?
https://flathub.org/apps/details/im.riot.Riot (Element doesn't provide Fedora packaging and "blessed" repository is discontinued element-hq/element-web#3781 (comment))
Homeserver
pikaviestin.fi on Synapse 1.51.0
Will you send logs?
No
This appears to be a regression, element-hq/element-web#12932 is the same, but previously fixed and I presume a new issue is required two years later.
I cannot send logs as they require being logged in.
The text was updated successfully, but these errors were encountered: