Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: Connecting to unix:///run/authd.sock
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: Sending to GDM: {"type":"hello"}
Apr 07 21:13:45 ubuntu gnome-shell[3170]: authd: Starting authd protocol
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: Got from GDM: {"type":"hello","hello":{"version":1}}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: Gdm Reply is type:hello hello:{version:1}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: adapter.initHealthCheck{}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: Sending to GDM: {"type":"request", "request":{"type":"uiLayoutCapabilities", "uiLayoutCapabilities":{}}}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: Got from GDM: {"type":"response","response":{"type":"uiLayoutCapabilities","uiLayoutCapabilities":{"supportedUiLayouts":[{"type":"form","label":"required","wait":"optional:true,false","entry":"optional:chars,chars_password,digits,digits_password"},{"type":"newpassword","label":"required","entry":"optional:chars,chars_password,digits,digits_password"},{"type":"qrcode","label":"required","button":"optional","wait":"required:true,false","content":"required","code":"optional"}]}}}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: adapter.supportedUILayoutsReceived{layouts:[]*authd.UILayout{(*authd.UILayout)(0xc0001fe620), (*authd.UILayout)(0xc0001fe770), (*authd.UILayout)(0xc0001fe7e0)}}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: adapter.brokersListReceived{brokers:[]*authd.ABResponse_BrokerInfo{(*authd.ABResponse_BrokerInfo)(0xc0000be460), (*authd.ABResponse_BrokerInfo)(0xc0000be6e0)}}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: Sending to GDM: {"type":"event", "event":{"type":"brokersReceived", "brokersReceived":{"brokersInfos":[{"id":"local", "name":"local", "brandIcon":""}, {"id":"3820511142", "name":"Google", "brandIcon":"/snap/authd-google/current/broker_icon.png"}]}}}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: adapter.BrokerListReceived{}, brokers: []*authd.ABResponse_BrokerInfo{(*authd.ABResponse_BrokerInfo)(0xc0000be460), (*authd.ABResponse_BrokerInfo)(0xc0000be6e0)}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: adapter.userSelected{username:"authde2etest@gmail.com"}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: Got from GDM: {"type":"eventAck"}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: EventSend&{brokersInfos:{id:"local" name:"local" brand_icon:""} brokersInfos:{id:"3820511142" name:"Google" brand_icon:"/snap/authd-google/current/broker_icon.png"}}result<nil>
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: adapter.UsernameSelected{}, user: "authde2etest@gmail.com"
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: Sending to GDM: {"type":"event", "event":{"type":"userSelected", "userSelected":{"userId":"authde2etest@gmail.com"}}}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: adapter.brokerSelected{brokerID:"3820511142"}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: Sending to GDM: {"type":"event", "event":{"type":"brokerSelected", "brokerSelected":{"brokerId":"3820511142"}}}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: adapter.BrokerSelected{BrokerID:"3820511142"}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: Got from GDM: {"type":"eventAck"}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: EventSend&{userId:"authde2etest@gmail.com"}result<nil>
Apr 07 21:13:45 ubuntu gnome-shell[3170]: authd: Broker selected 3820511142
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: Got from GDM: {"type":"eventAck"}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: EventSend&{brokerId:"3820511142"}result<nil>
Apr 07 21:13:45 ubuntu authd-google[2028]: Creating new session (username=authde2etest@gmail.com, lang=C, mode=auth)
Apr 07 21:13:45 ubuntu authd-google[2028]: Created new session c677ad87-bde4-4c27-b9a1-66bb1ae70635
Apr 07 21:13:45 ubuntu authd[987]: 3820511142-c677ad87-bde4-4c27-b9a1-66bb1ae70635: New auth session for "authde2etest@gmail.com"
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: adapter.SessionStarted{brokerID:"3820511142", sessionID:"3820511142-c677ad87-bde4-4c27-b9a1-66bb1ae70635", encryptionKey:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwRKCStRYt48QU5CKBH4uaHUs+XOcLH2L/BuYeHMPZUDR+5ixvVHd+89qLEfhXZoTT7zzSg3Fe56goZutwbP7kKleiybKaZONW3Ofaa3jqq2yB+z0LifMxhOX1AQIjjB9nTyIJuIR+q0bnTNvi+xY5hKKrJ7Zb0RS4nFdo+4XyfwvlMStnUn+9hBb0QNeA426jF8uZ8bEtJ2iXC64os4xpGNx+VctlzTcVC+1WECaByYVobHjV5CNKEebduHQ/vi6jjaproNMGQQcfBw/YMs3//5IRG9IDJUPCvbBManRrFT+K7BZQEjfD4KGEhW6gAwWAJPdFOnV0yXRmRChUgUdcQIDAQAB"}
Apr 07 21:13:45 ubuntu gdm-session-wor[3518]: adapter.GetAuthenticationModesRequested{}
Apr 07 21:13:45 ubuntu authd-google[2028]: Getting authentication modes for session c677ad87-bde4-4c27-b9a1-66bb1ae70635
Apr 07 21:13:45 ubuntu authd-google[2028]: Provider does not support device registration, so local password authentication is available for user "authde2etest@gmail.com"
Apr 07 21:13:45 ubuntu authd-google[2028]: Got authentication modes for session c677ad87-bde4-4c27-b9a1-66bb1ae70635: [map[id:password label:Local Password Authentication] map[id:device_auth_qr label:Device Authentication]]
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: authModes[id:"password" label:"Local Password Authentication" id:"device_auth_qr" label:"Device Authentication"]
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: adapter.authModesReceived{authModes:[]*authd.GAMResponse_AuthenticationMode{(*authd.GAMResponse_AuthenticationMode)(0xc0004a40f0), (*authd.GAMResponse_AuthenticationMode)(0xc0004a4320)}}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: adapter.ChangeStage{Stage:"authModeSelection"}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: adapter.List: Focus
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: Sending to GDM: {"type":"event", "event":{"type":"authModesReceived", "authModesReceived":{"authModes":[{"id":"password", "label":"Local Password Authentication"}, {"id":"device_auth_qr", "label":"Device Authentication"}]}}}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: adapter.listFocused{id:0x2}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: adapter.listFocused{id:0x2}, autoselect: "password"
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: adapter.StageChanged{Stage:"authModeSelection"}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: Sending to GDM: {"type":"request", "request":{"type":"changeStage", "changeStage":{"stage":"authModeSelection"}}}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: adapter.authModeSelected{id:"password"}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: adapter.AuthModeSelected{ID:"password"}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: Got from GDM: {"type":"eventAck"}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: Sending to GDM: {"type":"event", "event":{"type":"authModeSelected", "authModeSelected":{"authModeId":"password"}}}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: EventSend&{authModes:{id:"password" label:"Local Password Authentication"} authModes:{id:"device_auth_qr" label:"Device Authentication"}}result<nil>
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: Got from GDM: {"type":"eventAck"}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: EventSend&{authModeId:"password"}result<nil>
Apr 07 21:13:46 ubuntu authd-google[2028]: Selecting authentication mode password for session c677ad87-bde4-4c27-b9a1-66bb1ae70635
Apr 07 21:13:46 ubuntu authd-google[2028]: Selected authentication mode password for session c677ad87-bde4-4c27-b9a1-66bb1ae70635: map[entry:chars_password label:Enter your local password type:form]
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: adapter.UILayoutReceived{&authd.UILayout{state:impl.MessageState{NoUnkeyedLiterals:pragma.NoUnkeyedLiterals{}, DoNotCompare:pragma.DoNotCompare{}, DoNotCopy:pragma.DoNotCopy{}, atomicMessageInfo:(*impl.MessageInfo)(nil)}, Type:"form", Label:(*string)(0xc0000a2640), Button:(*string)(0xc0000a2650), Wait:(*string)(0xc0000a2660), Entry:(*string)(0xc0000a2670), Content:(*string)(0xc0000a2680), Code:(*string)(0xc0000a2690), RendersQrcode:(*bool)(nil), unknownFields:[]uint8(nil), sizeCache:0}}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: Sending to GDM: {"type":"event", "event":{"type":"uiLayoutReceived", "uiLayoutReceived":{"uiLayout":{"type":"form", "label":"Enter your local password", "button":"", "wait":"", "entry":"chars_password", "content":"", "code":""}}}}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: Got from GDM: {"type":"response","response":{"type":"changeStage","ack":{}}}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: Gdm stage change to authModeSelection sent
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: Got from GDM: {"type":"eventAck"}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: EventSend&{uiLayout:{type:"form" label:"Enter your local password" button:"" wait:"" entry:"chars_password" content:"" code:""}}result<nil>
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: adapter.ChangeStage{Stage:"challenge"}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: *adapter.List: Blur
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: adapter.authenticationModel: Focus, focused false
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: *adapter.focusTrackerModel: Focus
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: adapter.StageChanged{Stage:"challenge"}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: adapter.StageChanged{Stage:"challenge"}, in progress false, focused: true
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: Sending to GDM: {"type":"request", "request":{"type":"changeStage", "changeStage":{"stage":"challenge"}}}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: adapter.startAuthentication{}, current model &{true}, focused true
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: Sending to GDM: {"type":"event", "event":{"type":"startAuthentication", "startAuthentication":{}}}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: Got from GDM: {"type":"response","response":{"type":"changeStage","ack":{}}}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: Gdm stage change to challenge sent
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: Got from GDM: {"type":"eventAck"}
Apr 07 21:13:46 ubuntu gdm-session-wor[3518]: EventSend&{}result<nil>
Apr 07 21:13:47 ubuntu systemd[1]: Stopping user@10000.service - User Manager for UID 10000...
Apr 07 21:13:47 ubuntu systemd[2107]: Activating special unit exit.target...
Apr 07 21:13:47 ubuntu systemd[2107]: Removed slice app-gnome\x2dsession\x2dmanager.slice - Slice /app/gnome-session-manager.
Apr 07 21:13:47 ubuntu systemd[2107]: app-gnome\x2dsession\x2dmanager.slice: Consumed 1.028s CPU time.
Apr 07 21:13:47 ubuntu systemd[2107]: Removed slice app-org.gnome.Terminal.slice - Slice /app/org.gnome.Terminal.
Apr 07 21:13:47 ubuntu systemd[2107]: Stopped target default.target - Main User Target.
Apr 07 21:13:47 ubuntu systemd[2107]: Stopping dbus.service - D-Bus User Message Bus...
[...]
Not sure if it's relevant, but you can see that briefly after, the systemd user manager instance user@10000.service is stopped. That's the user which tries to log in. It logged in before (via device auth), then logged out again and now tries to log in with the local password.
It happened in this test run in test case "Login Gdm". You can see in the video at 1:33 that the username is being entered, and then the "Username" entry becomes blank instead of the "Password" entry appearing:
The logs of the test run are available here.
The interesting part begins at 21:13:45:
Not sure if it's relevant, but you can see that briefly after, the systemd user manager instance
user@10000.serviceis stopped. That's the user which tries to log in. It logged in before (via device auth), then logged out again and now tries to log in with the local password.Cc @3v1n0