ubuntu / authd

Authentication daemon for external Brokers
GNU Lesser General Public License v3.0
58 stars 8 forks source link

Issue: Authentication Successful but not directed to set local password instead returning back to login screen #495

Closed taspanja closed 2 weeks ago

taspanja commented 3 weeks ago

Is there an existing issue for this?

Describe the issue

I created the Broker and set it up as per guidelines. I logged out of the local user and proceeded with the MS Authentication as per guidelines. I input the username and select the broker, device authentication shows up and I successfully logged in however the input local password screen never shows up and I am again redirected to the logon screen with my local test user as the only available logon.

Where does the issue happens

Steps to reproduce it

  1. Install Ubuntu 24.04
  2. Install Updates
  3. Install Authd using provided instructions
  4. Install Broker as per instructions
  5. Configure the broker and restart the services
  6. Try to log in as per instructions

System information and logs

Environment

Log files

Please redact/remove sensitive information:

Authd entries:

journalctl -u authd.service

Aug 23 13:44:30 test-Latitude-7400 systemd[1]: Starting authd.service - Authd daemon service...
Aug 23 13:44:30 test-Latitude-7400 authd[11813]: WARNING Broker configuration directory "/etc/authd/brokers.d/" does not exist, only local broker will be available
Aug 23 13:44:30 test-Latitude-7400 systemd[1]: Started authd.service - Authd daemon service.
Aug 23 13:57:35 test-Latitude-7400 systemd[1]: Stopping authd.service - Authd daemon service...
Aug 23 13:57:35 test-Latitude-7400 systemd[1]: authd.service: Deactivated successfully.
Aug 23 13:57:35 test-Latitude-7400 systemd[1]: Stopped authd.service - Authd daemon service.
Aug 23 13:57:35 test-Latitude-7400 systemd[1]: Starting authd.service - Authd daemon service...
Aug 23 13:57:35 test-Latitude-7400 systemd[1]: Started authd.service - Authd daemon service.

MS Entra ID broker entries:

journalctl -u snap.authd-msentraid.authd-msentraid.service

Aug 23 13:48:40 test-Latitude-7400 systemd[1]: Started snap.authd-msentraid.authd-msentraid.service - Service for snap application authd-msentraid.authd-msentraid.
Aug 23 13:48:41 test-Latitude-7400 authd-msentraid.authd-msentraid[17181]: time=2024-08-23T13:48:41.170+02:00 level=ERROR msg="could not create broker with provided issuer and client ID: oidc: failed to decode provider discovery object: expected Content-Type = application/json, got \"text/html; charset=utf-8\": invalid character '<' looking for beginning of value"
Aug 23 13:48:41 test-Latitude-7400 systemd[1]: snap.authd-msentraid.authd-msentraid.service: Main process exited, code=exited, status=1/FAILURE
Aug 23 13:48:41 test-Latitude-7400 systemd[1]: snap.authd-msentraid.authd-msentraid.service: Failed with result 'exit-code'.
Aug 23 13:48:41 test-Latitude-7400 systemd[1]: snap.authd-msentraid.authd-msentraid.service: Scheduled restart job, restart counter is at 1.
Aug 23 13:48:41 test-Latitude-7400 systemd[1]: Started snap.authd-msentraid.authd-msentraid.service - Service for snap application authd-msentraid.authd-msentraid.
Aug 23 13:48:41 test-Latitude-7400 authd-msentraid.authd-msentraid[17243]: time=2024-08-23T13:48:41.792+02:00 level=ERROR msg="could not create broker with provided issuer and client ID: oidc: failed to decode provider discovery object: expected Content-Type = application/json, got \"text/html; charset=utf-8\": invalid character '<' looking for beginning of value"
Aug 23 13:48:41 test-Latitude-7400 systemd[1]: snap.authd-msentraid.authd-msentraid.service: Main process exited, code=exited, status=1/FAILURE
Aug 23 13:48:41 test-Latitude-7400 systemd[1]: snap.authd-msentraid.authd-msentraid.service: Failed with result 'exit-code'.
Aug 23 13:48:42 test-Latitude-7400 systemd[1]: snap.authd-msentraid.authd-msentraid.service: Scheduled restart job, restart counter is at 2.
Aug 23 13:48:42 test-Latitude-7400 systemd[1]: Started snap.authd-msentraid.authd-msentraid.service - Service for snap application authd-msentraid.authd-msentraid.
Aug 23 13:48:42 test-Latitude-7400 authd-msentraid.authd-msentraid[17295]: time=2024-08-23T13:48:42.758+02:00 level=ERROR msg="could not create broker with provided issuer and client ID: oidc: failed to decode provider discovery object: expected Content-Type = application/json, got \"text/html; charset=utf-8\": invalid character '<' looking for beginning of value"
Aug 23 13:48:42 test-Latitude-7400 systemd[1]: snap.authd-msentraid.authd-msentraid.service: Main process exited, code=exited, status=1/FAILURE
Aug 23 13:48:42 test-Latitude-7400 systemd[1]: snap.authd-msentraid.authd-msentraid.service: Failed with result 'exit-code'.
Aug 23 13:48:42 test-Latitude-7400 systemd[1]: snap.authd-msentraid.authd-msentraid.service: Scheduled restart job, restart counter is at 3.
Aug 23 13:48:42 test-Latitude-7400 systemd[1]: Started snap.authd-msentraid.authd-msentraid.service - Service for snap application authd-msentraid.authd-msentraid.
Aug 23 13:48:43 test-Latitude-7400 authd-msentraid.authd-msentraid[17346]: time=2024-08-23T13:48:43.557+02:00 level=ERROR msg="could not create broker with provided issuer and client ID: oidc: failed to decode provider discovery object: expected Content-Type = application/json, got \"text/html; charset=utf-8\": invalid character '<' looking for beginning of value"
Aug 23 13:48:43 test-Latitude-7400 systemd[1]: snap.authd-msentraid.authd-msentraid.service: Main process exited, code=exited, status=1/FAILURE
Aug 23 13:48:43 test-Latitude-7400 systemd[1]: snap.authd-msentraid.authd-msentraid.service: Failed with result 'exit-code'.
Aug 23 13:48:43 test-Latitude-7400 systemd[1]: snap.authd-msentraid.authd-msentraid.service: Scheduled restart job, restart counter is at 4.
Aug 23 13:48:43 test-Latitude-7400 systemd[1]: Started snap.authd-msentraid.authd-msentraid.service - Service for snap application authd-msentraid.authd-msentraid.
Aug 23 13:48:44 test-Latitude-7400 authd-msentraid.authd-msentraid[17407]: time=2024-08-23T13:48:44.635+02:00 level=ERROR msg="could not create broker with provided issuer and client ID: oidc: failed to decode provider discovery object: expected Content-Type = application/json, got \"text/html; charset=utf-8\": invalid character '<' looking for beginning of value"
Aug 23 13:48:44 test-Latitude-7400 systemd[1]: snap.authd-msentraid.authd-msentraid.service: Main process exited, code=exited, status=1/FAILURE
Aug 23 13:48:44 test-Latitude-7400 systemd[1]: snap.authd-msentraid.authd-msentraid.service: Failed with result 'exit-code'.
Aug 23 13:48:44 test-Latitude-7400 systemd[1]: snap.authd-msentraid.authd-msentraid.service: Scheduled restart job, restart counter is at 5.
Aug 23 13:48:44 test-Latitude-7400 systemd[1]: snap.authd-msentraid.authd-msentraid.service: Start request repeated too quickly.
Aug 23 13:48:44 test-Latitude-7400 systemd[1]: snap.authd-msentraid.authd-msentraid.service: Failed with result 'exit-code'.
Aug 23 13:48:44 test-Latitude-7400 systemd[1]: Failed to start snap.authd-msentraid.authd-msentraid.service - Service for snap application authd-msentraid.authd-msentraid.
Aug 23 13:57:39 test-Latitude-7400 systemd[1]: Started snap.authd-msentraid.authd-msentraid.service - Service for snap application authd-msentraid.authd-msentraid.

Application settings

Please redact/remove sensitive information:

Broker configuration:

cat /var/snap/authd-msentraid/current/broker.conf

[oidc]
issuer = https://login.microsoftonline.com/********-****-****-****-************/v2.0
client_id = ********-****-****-****-************

[users]
# The directory where the home directory will be created for new users.
# Existing users will keep their current directory.
# The user home directory will be created in the format of {home_base_dir}/{username}
# home_base_dir = /home

# The username suffixes that are allowed to login via ssh without existing previously in the system.
# The suffixes must be separated by commas.
# ssh_allowed_suffixes = @example.com,@anotherexample.com

Broker authd configuration:

cat /etc/authd/brokers.d/msentraid.conf

# This section is used by authd to identify and communicate with the broker.
# It should not be edited.
[authd]
name = Microsoft Entra ID
brand_icon = /snap/authd-msentraid/current/broker_icon.png
dbus_name = com.ubuntu.authd.MSEntraID
dbus_object = /com/ubuntu/authd/MSEntraID

Relevant information

Gnome Shell Log

Aug 23 13:05:13 test-Latitude-7400 gnome-shell[2588]: Running GNOME Shell (using mutter 46.0) as a Wayland display server
Aug 23 13:05:14 test-Latitude-7400 gnome-shell[2588]: Made thread 'KMS thread' realtime scheduled
Aug 23 13:05:14 test-Latitude-7400 gnome-shell[2588]: Device '/dev/dri/card1' prefers shadow buffer
Aug 23 13:05:14 test-Latitude-7400 gnome-shell[2588]: Added device '/dev/dri/card1' (i915) using atomic mode setting.
Aug 23 13:05:14 test-Latitude-7400 gnome-shell[2588]: Created gbm renderer for '/dev/dri/card1'
Aug 23 13:05:14 test-Latitude-7400 gnome-shell[2588]: Boot VGA GPU /dev/dri/card1 selected as primary
Aug 23 13:05:14 test-Latitude-7400 gnome-shell[2588]: Obtained a high priority EGL context
Aug 23 13:05:14 test-Latitude-7400 gnome-shell[2588]: Obtained a high priority EGL context
Aug 23 13:05:14 test-Latitude-7400 gnome-shell[2588]: Using public X11 display :1024, (using :1025 for managed services)
Aug 23 13:05:14 test-Latitude-7400 gnome-shell[2588]: Using Wayland display name 'wayland-0'
Aug 23 13:05:15 test-Latitude-7400 gnome-shell[2588]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly.
Aug 23 13:05:15 test-Latitude-7400 gnome-shell[2588]: Will monitor session c1
Aug 23 13:05:15 test-Latitude-7400 gnome-shell[2588]: Extension ding@rastersoft.com already installed in /usr/share/gnome-shell/extensions/ding@rastersoft.com. /usr/share/gnome-shell/extensions/ding@rastersoft.com will not be loaded
Aug 23 13:05:15 test-Latitude-7400 gnome-shell[2588]: Extension tiling-assistant@ubuntu.com already installed in /usr/share/gnome-shell/extensions/tiling-assistant@ubuntu.com. /usr/share/gnome-shell/extensions/tiling-assistant@ubuntu.com will not be loaded
Aug 23 13:05:15 test-Latitude-7400 gnome-shell[2588]: Extension ubuntu-appindicators@ubuntu.com already installed in /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com. /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com will not be loaded
Aug 23 13:05:15 test-Latitude-7400 gnome-shell[2588]: Extension ubuntu-dock@ubuntu.com already installed in /usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com. /usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com will not be loaded
Aug 23 13:05:15 test-Latitude-7400 org.gnome.Shell.desktop[2588]: Window manager warning: Failed to parse saved session file: Failed to open file “/var/lib/gdm3/.config/mutter/sessions/108b4b009a95f01c1172441111386153800000025480000.ms”: No such file or directory
Aug 23 13:05:15 test-Latitude-7400 gnome-shell[2588]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Aug 23 13:05:15 test-Latitude-7400 gnome-shell[2588]: no authentication service is enabled, using password authentication
Aug 23 13:05:16 test-Latitude-7400 gnome-shell[2588]: Registering session with GDM
Aug 23 13:41:49 test-Latitude-7400 gnome-shell[2588]: endSessionDialog: No XDG_SESSION_ID, fetched from logind: c1
Aug 23 13:41:59 test-Latitude-7400 gnome-shell[2588]: no authentication service is enabled, using password authentication
Aug 23 13:42:03 test-Latitude-7400 gnome-shell[7852]: Running GNOME Shell (using mutter 46.0) as a Wayland display server
Aug 23 13:42:03 test-Latitude-7400 gnome-shell[7852]: Made thread 'KMS thread' realtime scheduled
Aug 23 13:42:03 test-Latitude-7400 gnome-shell[7852]: Device '/dev/dri/card1' prefers shadow buffer
Aug 23 13:42:03 test-Latitude-7400 gnome-shell[7852]: Added device '/dev/dri/card1' (i915) using atomic mode setting.
Aug 23 13:42:03 test-Latitude-7400 gnome-shell[7852]: Created gbm renderer for '/dev/dri/card1'
Aug 23 13:42:03 test-Latitude-7400 gnome-shell[7852]: Boot VGA GPU /dev/dri/card1 selected as primary
Aug 23 13:42:03 test-Latitude-7400 gnome-shell[7852]: Obtained a high priority EGL context
Aug 23 13:42:03 test-Latitude-7400 gnome-shell[7852]: Obtained a high priority EGL context
Aug 23 13:42:03 test-Latitude-7400 gnome-shell[7852]: Using public X11 display :0, (using :1 for managed services)
Aug 23 13:42:03 test-Latitude-7400 gnome-shell[7852]: Using Wayland display name 'wayland-0'
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly.
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Will monitor session 9
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Gio.UnixInputStream has been moved to a separate platform-specific library. Please update your code to use GioUnix.InputStream instead.
                                                      0 inhibit() ["resource:///org/gnome/shell/misc/loginManager.js":209:8]
                                                      1 InterpretGeneratorResume() ["self-hosted":1461:33]
                                                      2 AsyncFunctionNext() ["self-hosted":852:26]
                                                      3 anonymous() ["resource:///org/gnome/shell/ui/init.js":21:19]
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Failed to import DBusMenu, quicklists are not available: Error: Requiring Dbusmenu, version none: Typelib file for namespace 'Dbusmenu' (any version) not found
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Failed to import DBusMenu, quicklists are not available: Error: Requiring Dbusmenu, version none: Typelib file for namespace 'Dbusmenu' (any version) not found
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Failed to import DBusMenu, quicklists are not available: Error: Requiring Dbusmenu, version none: Typelib file for namespace 'Dbusmenu' (any version) not found
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Aug 23 13:42:04 test-Latitude-7400 gnome-shell[7852]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[7852]: GNOME Shell started at Fri Aug 23 2024 13:42:04 GMT+0200 (Central European Summer Time)
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[7852]: Registering session with GDM
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[2588]: Connection to xwayland lost
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[2588]: Xwayland terminated, exiting since it was mandatory
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[2588]: JS ERROR: Gio.IOErrorEnum: Xwayland exited unexpectedly
                                                      @resource:///org/gnome/shell/ui/init.js:21:20
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[2588]: Execution of main.js threw exception: Module resource:///org/gnome/shell/ui/init.js threw an exception
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[7852]: Launching DING process
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[7852]: DING: Detected async api for thumbnails
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[7852]: DING: (gjs:8422): Gjs-WARNING **: 13:42:05.700: GLib.unix_signal_add has been moved to a separate platform-specific library. Please update your code to use GLibUnix.signal_add instead.
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[7852]: DING: 0 DesktopManager() ["/usr/share/gnome-shell/extensions/ding@rastersoft.com/app/desktopManager.js":263:12]
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[7852]: DING: 1 anonymous() ["/usr/share/gnome-shell/extensions/ding@rastersoft.com/app/ding.js":180:25]
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[7852]: DING: 2 anonymous() ["/usr/share/gnome-shell/extensions/ding@rastersoft.com/app/ding.js":197:20]
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[7852]: DING: 3 <TOP LEVEL> ["/usr/share/gnome-shell/extensions/ding@rastersoft.com/app/ding.js":206:12]
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[7852]: DING: ** Message: 13:42:05.754: Connecting to org.freedesktop.Tracker3.Miner.Files
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[7852]: DING: DBus interface for Switcheroo control (net.hadess.SwitcherooControl) is now available.
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[7852]: DING: DBus interface for Gvfs daemon (org.gtk.vfs.Metadata) is now available.
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[7852]: Received notification for window. 0 notifications remaining.
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[7852]: DING: DBus interface for Nautilus (org.gnome.Nautilus.FileOperations2) is now available.
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[7852]: DING: DBus interface for Nautilus (org.freedesktop.FileManager1) is now available.
Aug 23 13:42:05 test-Latitude-7400 gnome-shell[7852]: DING: GNOME nautilus 46.0
Aug 23 13:42:06 test-Latitude-7400 gnome-shell[7852]: Received error from D-Bus search provider org.gnome.Terminal.desktop: Gio.IOErrorEnum: Cannot invoke method; proxy is for the well-known name org.gnome.Terminal without an owner, and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag
Aug 23 13:42:06 test-Latitude-7400 gnome-shell[7852]: Received error from D-Bus search provider org.gnome.Terminal.desktop: Gio.IOErrorEnum: Cannot invoke method; proxy is for the well-known name org.gnome.Terminal without an owner, and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag
Aug 23 13:42:06 test-Latitude-7400 gnome-shell[7852]: Received error from D-Bus search provider org.gnome.seahorse.Application.desktop: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/gnome/seahorse/Application”
Aug 23 13:42:07 test-Latitude-7400 gnome-shell[7852]: Received error from D-Bus search provider org.gnome.Terminal.desktop: Gio.IOErrorEnum: Cannot invoke method; proxy is for the well-known name org.gnome.Terminal without an owner, and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag
Aug 23 13:42:18 test-Latitude-7400 gnome-shell[7852]: Error in size change accounting.
Aug 23 13:42:21 test-Latitude-7400 gnome-shell[7852]: Error in size change accounting.
Aug 23 13:57:49 test-Latitude-7400 gnome-shell[7852]: Shutting down GNOME Shell
Aug 23 13:57:49 test-Latitude-7400 gnome-shell[7852]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
                                                      The offending signal was kill-window-effects on ShellWM 0x5679e14076b0.
                                                      == Stack trace for context 0x5679e0f4e8c0 ==
Aug 23 13:57:49 test-Latitude-7400 gnome-shell[7852]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
                                                      The offending signal was destroy on ShellWM 0x5679e14076b0.
                                                      == Stack trace for context 0x5679e0f4e8c0 ==
Aug 23 13:57:49 test-Latitude-7400 gnome-shell[7852]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
                                                      The offending signal was destroy on ShellWM 0x5679e14076b0.
                                                      == Stack trace for context 0x5679e0f4e8c0 ==
Aug 23 13:57:49 test-Latitude-7400 gnome-shell[7852]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
                                                      The offending signal was window-left-monitor on MetaDisplay 0x5679e13e1c00.
                                                      == Stack trace for context 0x5679e0f4e8c0 ==
Aug 23 13:57:49 test-Latitude-7400 gnome-shell[7852]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
                                                      The offending signal was window-left-monitor on MetaDisplay 0x5679e13e1c00.
                                                      == Stack trace for context 0x5679e0f4e8c0 ==
Aug 23 13:57:49 test-Latitude-7400 gnome-shell[7852]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
                                                      The offending signal was unmanaged on MetaWindowWayland 0x5679e6e01d50.
                                                      == Stack trace for context 0x5679e0f4e8c0 ==
Aug 23 13:57:49 test-Latitude-7400 gnome-shell[7852]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
                                                      The offending signal was unmanaged on MetaWindowWayland 0x5679e6e01d50.
                                                      == Stack trace for context 0x5679e0f4e8c0 ==
Aug 23 13:57:50 test-Latitude-7400 gnome-shell[31396]: Running GNOME Shell (using mutter 46.2) as a Wayland display server
Aug 23 13:57:50 test-Latitude-7400 gnome-shell[31396]: Made thread 'KMS thread' realtime scheduled
Aug 23 13:57:50 test-Latitude-7400 gnome-shell[31396]: Device '/dev/dri/card1' prefers shadow buffer
Aug 23 13:57:50 test-Latitude-7400 gnome-shell[31396]: Added device '/dev/dri/card1' (i915) using atomic mode setting.
Aug 23 13:57:50 test-Latitude-7400 gnome-shell[31396]: Created gbm renderer for '/dev/dri/card1'
Aug 23 13:57:50 test-Latitude-7400 gnome-shell[31396]: Boot VGA GPU /dev/dri/card1 selected as primary
Aug 23 13:57:50 test-Latitude-7400 gnome-shell[31396]: Obtained a high priority EGL context
Aug 23 13:57:50 test-Latitude-7400 gnome-shell[31396]: Obtained a high priority EGL context
Aug 23 13:57:50 test-Latitude-7400 gnome-shell[31396]: Using public X11 display :1024, (using :1025 for managed services)
Aug 23 13:57:50 test-Latitude-7400 gnome-shell[31396]: Using Wayland display name 'wayland-0'
Aug 23 13:57:50 test-Latitude-7400 gnome-shell[31396]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly.
Aug 23 13:57:50 test-Latitude-7400 gnome-shell[31396]: Will monitor session c2
Aug 23 13:57:50 test-Latitude-7400 gnome-shell[31396]: Extension ding@rastersoft.com already installed in /usr/share/gnome-shell/extensions/ding@rastersoft.com. /usr/share/gnome-shell/extensions/ding@rastersoft.com will not be loaded
Aug 23 13:57:50 test-Latitude-7400 gnome-shell[31396]: Extension tiling-assistant@ubuntu.com already installed in /usr/share/gnome-shell/extensions/tiling-assistant@ubuntu.com. /usr/share/gnome-shell/extensions/tiling-assistant@ubuntu.com will not be loaded
Aug 23 13:57:50 test-Latitude-7400 gnome-shell[31396]: Extension ubuntu-appindicators@ubuntu.com already installed in /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com. /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com will not be loaded
Aug 23 13:57:50 test-Latitude-7400 gnome-shell[31396]: Extension ubuntu-dock@ubuntu.com already installed in /usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com. /usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com will not be loaded
Aug 23 13:57:50 test-Latitude-7400 org.gnome.Shell.desktop[31396]: Window manager warning: Failed to parse saved session file: Failed to open file “/var/lib/gdm3/.config/mutter/sessions/10394a404db097cd7c172441427035630200000313550000.ms”: No such file or directory
Aug 23 13:57:50 test-Latitude-7400 gnome-shell[31396]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Aug 23 13:57:51 test-Latitude-7400 gnome-shell[31396]: Registering session with GDM
Aug 23 13:57:59 test-Latitude-7400 gnome-shell[31396]: ActUserManager: user (null) has no username (uid: -1)
Aug 23 13:57:59 test-Latitude-7400 gnome-shell[31396]: Starting authd protocol
Aug 23 13:58:01 test-Latitude-7400 gnome-shell[31396]: Broker selected 2182967434
Aug 23 13:58:58 test-Latitude-7400 gnome-shell[31396]: Starting authd protocol
Aug 23 13:59:04 test-Latitude-7400 gnome-shell[31396]: Starting authd protocol
Aug 23 13:59:04 test-Latitude-7400 gnome-shell[31396]: Broker selected local
Aug 23 13:59:08 test-Latitude-7400 gnome-shell[32276]: Running GNOME Shell (using mutter 46.2) as a Wayland display server
Aug 23 13:59:08 test-Latitude-7400 gnome-shell[32276]: Made thread 'KMS thread' realtime scheduled
Aug 23 13:59:08 test-Latitude-7400 gnome-shell[32276]: Device '/dev/dri/card1' prefers shadow buffer
Aug 23 13:59:08 test-Latitude-7400 gnome-shell[32276]: Added device '/dev/dri/card1' (i915) using atomic mode setting.
Aug 23 13:59:08 test-Latitude-7400 gnome-shell[32276]: Created gbm renderer for '/dev/dri/card1'
Aug 23 13:59:08 test-Latitude-7400 gnome-shell[32276]: Boot VGA GPU /dev/dri/card1 selected as primary
Aug 23 13:59:08 test-Latitude-7400 gnome-shell[32276]: Obtained a high priority EGL context
Aug 23 13:59:08 test-Latitude-7400 gnome-shell[32276]: Obtained a high priority EGL context
Aug 23 13:59:08 test-Latitude-7400 gnome-shell[32276]: Using public X11 display :0, (using :1 for managed services)
Aug 23 13:59:08 test-Latitude-7400 gnome-shell[32276]: Using Wayland display name 'wayland-0'
Aug 23 13:59:08 test-Latitude-7400 gnome-shell[32276]: libinput error: client bug: timer event10 hold: scheduled expiry is in the past (-55ms), your system is too slow
Aug 23 13:59:08 test-Latitude-7400 gnome-shell[32276]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly.
Aug 23 13:59:08 test-Latitude-7400 gnome-shell[32276]: Will monitor session 14
Aug 23 13:59:08 test-Latitude-7400 gnome-shell[32276]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Failed to query file info on '/home/test/.local/share/icc/.goutputstream-2ZK1S2': Error when getting information for file “/home/test/.local/share/icc/.goutputstream-2ZK1S2”: No such file or directory
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Failed to import DBusMenu, quicklists are not available: Error: Requiring Dbusmenu, version none: Typelib file for namespace 'Dbusmenu' (any version) not found
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Failed to import DBusMenu, quicklists are not available: Error: Requiring Dbusmenu, version none: Typelib file for namespace 'Dbusmenu' (any version) not found
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Failed to import DBusMenu, quicklists are not available: Error: Requiring Dbusmenu, version none: Typelib file for namespace 'Dbusmenu' (any version) not found
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Aug 23 13:59:09 test-Latitude-7400 gnome-shell[32276]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[32276]: GNOME Shell started at Fri Aug 23 2024 13:59:08 GMT+0200 (Central European Summer Time)
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[32276]: Registering session with GDM
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[31396]: Connection to xwayland lost
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[31396]: Xwayland terminated, exiting since it was mandatory
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[31396]: JS ERROR: Gio.IOErrorEnum: Xwayland exited unexpectedly
                                                       @resource:///org/gnome/shell/ui/init.js:21:20
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[31396]: Execution of main.js threw exception: Module resource:///org/gnome/shell/ui/init.js threw an exception
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[32276]: Launching DING process
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[32276]: Gio.UnixInputStream has been moved to a separate platform-specific library. Please update your code to use GioUnix.InputStream instead.
                                                       0 spawnv() ["file:///usr/share/gnome-shell/extensions/ding@rastersoft.com/extension.js":517:76]
                                                       1 launchDesktop() ["file:///usr/share/gnome-shell/extensions/ding@rastersoft.com/extension.js":435:37]
                                                       2 innerEnable/this.data.dbusConnectionId<() ["file:///usr/share/gnome-shell/extensions/ding@rastersoft.com/extension.js":251:17]
                                                       3 anonymous() ["resource:///org/gnome/shell/ui/init.js":21:19]
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[32276]: DING: Detected async api for thumbnails
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[32276]: DING: (gjs:32900): Gjs-WARNING **: 13:59:10.323: GLib.unix_signal_add has been moved to a separate platform-specific library. Please update your code to use GLibUnix.signal_add instead.
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[32276]: DING: 0 DesktopManager() ["/usr/share/gnome-shell/extensions/ding@rastersoft.com/app/desktopManager.js":263:12]
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[32276]: DING: 1 anonymous() ["/usr/share/gnome-shell/extensions/ding@rastersoft.com/app/ding.js":180:25]
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[32276]: DING: 2 anonymous() ["/usr/share/gnome-shell/extensions/ding@rastersoft.com/app/ding.js":197:20]
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[32276]: DING: 3 <TOP LEVEL> ["/usr/share/gnome-shell/extensions/ding@rastersoft.com/app/ding.js":206:12]
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[32276]: DING: DBus interface for Nautilus (org.gnome.Nautilus.FileOperations2) is now available.
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[32276]: DING: DBus interface for Nautilus (org.freedesktop.FileManager1) is now available.
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[32276]: DING: DBus interface for Switcheroo control (net.hadess.SwitcherooControl) is now available.
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[32276]: DING: DBus interface for Gvfs daemon (org.gtk.vfs.Metadata) is now available.
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[32276]: DING: ** Message: 13:59:10.349: Connecting to org.freedesktop.Tracker3.Miner.Files
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[32276]: DING: GNOME nautilus 46.2
Aug 23 13:59:10 test-Latitude-7400 gnome-shell[32276]: Received notification for window. 0 notifications remaining.
Aug 23 13:59:13 test-Latitude-7400 gnome-shell[32276]: Received error from D-Bus search provider org.gnome.Terminal.desktop: Gio.IOErrorEnum: Cannot invoke method; proxy is for the well-known name org.gnome.Terminal without an owner, and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag
Aug 23 13:59:13 test-Latitude-7400 gnome-shell[32276]: Received error from D-Bus search provider org.gnome.Terminal.desktop: Gio.IOErrorEnum: Cannot invoke method; proxy is for the well-known name org.gnome.Terminal without an owner, and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag
Aug 23 13:59:14 test-Latitude-7400 gnome-shell[32276]: Received error from D-Bus search provider org.gnome.Terminal.desktop: Gio.IOErrorEnum: Cannot invoke method; proxy is for the well-known name org.gnome.Terminal without an owner, and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag
Aug 23 13:59:17 test-Latitude-7400 gnome-shell[32276]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Aug 23 13:59:20 test-Latitude-7400 gnome-shell[32276]: Error in size change accounting.
Aug 23 13:59:21 test-Latitude-7400 gnome-shell[32276]: Error in size change accounting.

Double check your logs

adombeck commented 3 weeks ago

Thanks for the report! Please try logging in from the terminal via sudo login <user> and paste the error message if that also fails.

Aug 23 13:48:41 test-Latitude-7400 authd-msentraid.authd-msentraid[17181]: time=2024-08-23T13:48:41.170+02:00 level=ERROR msg="could not create broker with provided issuer and client ID: oidc: failed to decode provider discovery object: expected Content-Type = application/json, got \"text/html; charset=utf-8\": invalid character '<' looking for beginning of value"

This error message looks like the ones in the logs from https://github.com/ubuntu/authd/issues/476. That issue could be solved by using the development version of the authd-msentraid snap as described here, so please try that as well.

adombeck commented 3 weeks ago

That issue could be solved by using the development version of the authd-msentraid snap as described here, so please try that as well.

Actually, you don't need to switch the channel, because we just released a new snap version on the stable channel. So just run sudo snap refresh authd-msentraid and it should update the snap to the newest version. Please try again with that.

taspanja commented 2 weeks ago

Tried the sudo snap refresh and then tried the sudo login using the Microsoft Entra ID and I got the below error:

could not get user info: could not fetch user info: could not get user info: could not access user's groups: Insufficient privileges to complete the operation.

Login incorrect
taspanja commented 2 weeks ago

image

adombeck commented 2 weeks ago

Thanks for reporting back. Looks like the original issue was solved by the new snap version and the new issue you experience is https://github.com/ubuntu/authd/issues/450. We're still trying to figure out what causes that.