Hello,
It means there a mismatch between the info returns by your openid userinfo
endpoint and your user source.
Can you share your sogo.conf (mind the passwords and secrets in it) ?

The param
SOGoOpenIdEmailParam = "email";
tells SOGo where to get the user email in the your userinfo endpoint.

It must match the uid (or UIDFieldName) of your usersource. Be sure to have
canAuthenticate = YES;
in your user source

You can add those to have more logs:
SOGoDebugRequests = YES;
SOGoOpenIDDebugEnabled = YES;

Cheers,
-- 
Quentin Hivert || Alinto || R&D Lead Developer 
19 Quai Perrache 69002 Lyon
www.alinto.com

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of "Raghav"
Sent: mercredi 24 décembre 2025 09:08
To: [email protected]
Subject: [SOGo] Setting up OIDC for SOGo

Hi,

I am trying to setup OIDC Auth for SOGo.

SOGo properly redirects to OIDC provider page and post authentication, it
simply keeps looping and finally exits.

The logs:

Dec 24 13:23:19 sogod [1170]: |SOGo| starting method 'GET' on uri '/SOGo/'
Dec 24 13:23:19 sogod [1170]: |SOGo| request took 0.000738 seconds to
execute Dec 24 13:23:19 sogod [1170]: 106.51.37.174, 10.0.2.97 "GET /SOGo/
HTTP/1.1"
302 0/0 0.001 - - 0 - 11
Dec 24 13:23:33 sogod [1170]: |SOGo| starting method 'GET' on uri '/SOGo/?
code=0d30c356-f6ad-380f-
ac0d-1d59768559f3&session_state=12dbf83d7c4af160880faf316689e2cd8e1ae0c43e99
837b07b9c4ee0aec846e.D2rHzm3gDWHtZ2uAhXOj5w&state=5e4e775b0aac4113eaab1e9222
98da714001f566'
Dec 24 13:23:33 sogod [1170]: |SOGo| request took 0.145336 seconds to
execute Dec 24 13:23:33 sogod [1170]: 106.51.37.174, 10.0.2.97 "GET /SOGo/?
code=0d30c356-f6ad-380f-
ac0d-1d59768559f3&session_state=12dbf83d7c4af160880faf316689e2cd8e1ae0c43e99
837b07b9c4ee0aec846e.D2rHzm3gDWHtZ2uAhXOj5w&state=5e4e775b0aac4113eaab1e9222
98da714001f566
HTTP/1.1" 302 0/0 0.146 - - 0 - 13
Dec 24 13:23:33 sogod [1170]: |SOGo| starting method 'GET' on uri '/SOGo/'
Dec 24 13:23:33 sogod [1170]: |SOGo| request took 0.005218 seconds to
execute Dec 24 13:23:33 sogod [1170]: 106.51.37.174, 10.0.2.97 "GET /SOGo/
HTTP/1.1"
302 0/0 0.006 - - 0 - 12
Dec 24 13:23:33 sogod [1170]: |SOGo| starting method 'GET' on uri '/SOGo/?
code=9fd1b5ac-b743-3850-8041-
af296383607f&session_state=4a23d0458b93243d9f85697a0fdb2ee355721a5397ad617c7
9f9cb0100ffa33a.Wm4AhboOy4-
HxaESQjO1EQ&state=3ebb7622ae7763b00b8cd082f3b6fdc642cdf8b3'
Dec 24 13:23:34 sogod [1170]: |SOGo| request took 0.134167 seconds to
execute Dec 24 13:23:34 sogod [1170]: 106.51.37.174, 10.0.2.97 "GET /SOGo/?
code=9fd1b5ac-b743-3850-8041-
af296383607f&session_state=4a23d0458b93243d9f85697a0fdb2ee355721a5397ad617c7
9f9cb0100ffa33a.Wm4AhboOy4-
HxaESQjO1EQ&state=3ebb7622ae7763b00b8cd082f3b6fdc642cdf8b3 HTTP/1.1" 302 0/0
0.135 - - 0 - 12
Dec 24 13:23:34 sogod [1170]: |SOGo| starting method 'GET' on uri '/SOGo/'
Dec 24 13:23:34 sogod [1170]: |SOGo| request took 0.005393 seconds to
execute Dec 24 13:23:34 sogod [1170]: 106.51.37.174, 10.0.2.97 "GET /SOGo/
HTTP/1.1"
302 0/0 0.006 - - 0 - 11
Dec 24 13:23:34 sogod [1170]: |SOGo| starting method 'GET' on uri '/SOGo/?
code=ebd7dc4b-bf25-3ec2-b557-
86cf82c1744c&session_state=3aa7e96438a3d89d4a2446692948e5647d883822cb1e6e051
c9cf40007eddcf9.lNgULsXg5aKX1qmWJR7QfQ&state=b1f9b2d0f99759ffda3db06abc11802
a84c48b71'
Dec 24 13:23:34 sogod [1170]: |SOGo| request took 0.154037 seconds to
execute Dec 24 13:23:34 sogod [1170]: 106.51.37.174, 10.0.2.97 "GET /SOGo/?
code=ebd7dc4b-bf25-3ec2-b557-
86cf82c1744c&session_state=3aa7e96438a3d89d4a2446692948e5647d883822cb1e6e051
c9cf40007eddcf9.lNgULsXg5aKX1qmWJR7QfQ&state=b1f9b2d0f99759ffda3db06abc11802
a84c48b71
HTTP/1.1" 302 0/0 0.155 - - 0 - 12
Dec 24 13:23:34 sogod [1170]: |SOGo| starting method 'GET' on uri '/SOGo/'
Dec 24 13:23:34 sogod [1170]: |SOGo| request took 0.005343 seconds to
execute Dec 24 13:23:34 sogod [1170]: 106.51.37.174, 10.0.2.97 "GET /SOGo/
HTTP/1.1"
302 0/0 0.006 - - 0 - 11
Dec 24 13:23:35 sogod [1170]: |SOGo| starting method 'GET' on uri '/SOGo/?
code=62c50bcd-de6b-30d9-afd5-
47c42bdb582a&session_state=6652319155ef6348cbaaa5683df3f17cf65bd40678d341aba
fd7fc883f5b475f.MYWylGi-
yvm4KcKX501ujw&state=b2eeafd1d806575e052e2d7116422b7ebe9825ef'
Dec 24 13:23:35 sogod [1170]: |SOGo| request took 0.148423 seconds to
execute Dec 24 13:23:35 sogod [1170]: 106.51.37.174, 10.0.2.97 "GET /SOGo/?
code=62c50bcd-de6b-30d9-afd5-
47c42bdb582a&session_state=6652319155ef6348cbaaa5683df3f17cf65bd40678d341aba
fd7fc883f5b475f.MYWylGi-
yvm4KcKX501ujw&state=b2eeafd1d806575e052e2d7116422b7ebe9825ef HTTP/1.1" 302
0/0 0.149 - - 0 - 12
Dec 24 13:23:35 sogod [1170]: |SOGo| starting method 'GET' on uri '/SOGo/'
Dec 24 13:23:35 sogod [1170]: |SOGo| request took 0.005262 seconds to
execute Dec 24 13:23:35 sogod [1170]: 106.51.37.174, 10.0.2.97 "GET /SOGo/
HTTP/1.1"
302 0/0 0.006 - - 0 - 11
Dec 24 13:23:35 sogod [1170]: |SOGo| starting method 'GET' on uri '/SOGo/?
code=e5380fbd-1aa1-3c04-
9fef-2286672cc005&session_state=96d97f019c96f1e0a0b81d2c03bf8b1fcd4524de222b
0fca1809cf7d4d44be44.N4jiMQfAysgRskf9QgQIPQ&state=bc9bb19cceb19a4735d2d7a5a9
c9e58e85f1c73e'
Dec 24 13:23:35 sogod [1170]: |SOGo| request took 0.151008 seconds to
execute Dec 24 13:23:35 sogod [1170]: 106.51.37.174, 10.0.2.97 "GET /SOGo/?
code=e5380fbd-1aa1-3c04-
9fef-2286672cc005&session_state=96d97f019c96f1e0a0b81d2c03bf8b1fcd4524de222b
0fca1809cf7d4d44be44.N4jiMQfAysgRskf9QgQIPQ&state=bc9bb19cceb19a4735d2d7a5a9
c9e58e85f1c73e
HTTP/1.1" 302 0/0 0.152 - - 0 - 12
Dec 24 13:23:35 sogod [1170]: |SOGo| starting method 'GET' on uri '/SOGo/'
Dec 24 13:23:35 sogod [1170]: |SOGo| request took 0.005254 seconds to
execute Dec 24 13:23:35 sogod [1170]: 106.51.37.174, 10.0.2.97 "GET /SOGo/
HTTP/1.1"
302 0/0 0.006 - - 0 - 11
Dec 24 13:23:36 sogod [1170]: |SOGo| starting method 'GET' on uri '/SOGo/?
code=2ab32847-b149-33d9-
a66d-55d674d95410&session_state=00001c5f4fb4abe2d7106f1e3b6c9e35828caeeafbc0
b14882a6bfc1b98841fe.egb4P223-
2uKY9ADmU92oA&state=8784221ee7a5f4cbeca687a00caede7a8a10ff06'
Dec 24 13:23:36 sogod [1170]: |SOGo| request took 0.145110 seconds to
execute Dec 24 13:23:36 sogod [1170]: 106.51.37.174, 10.0.2.97 "GET /SOGo/?
code=2ab32847-b149-33d9-
a66d-55d674d95410&session_state=00001c5f4fb4abe2d7106f1e3b6c9e35828caeeafbc0
b14882a6bfc1b98841fe.egb4P223-
2uKY9ADmU92oA&state=8784221ee7a5f4cbeca687a00caede7a8a10ff06 HTTP/1.1" 302
0/0
0.146 - - 0 - 12
Dec 24 13:23:36 sogod [1170]: |SOGo| starting method 'GET' on uri '/SOGo/'
Dec 24 13:23:36 sogod [1170]: |SOGo| request took 0.005284 seconds to
execute Dec 24 13:23:36 sogod [1170]: 106.51.37.174, 10.0.2.97 "GET /SOGo/
HTTP/1.1"
302 0/0 0.006 - - 0 - 11
Dec 24 13:23:37 sogod [1170]: |SOGo| starting method 'GET' on uri '/SOGo/?
code=3c6f02eb-272b-39c9-bf64-
6f2626966923&session_state=c7f0802a8b89acd4f414af9010d3886f4e6f2f16f7e90a22b
5693c0003d2ff95.wokUjNaDRWJiDKYw1JPeiw&state=d1939470d283bf04bc7dd1c60bbae46
2994d5ae6'
Dec 24 13:23:37 sogod [1170]: |SOGo| request took 0.152185 seconds to
execute Dec 24 13:23:37 sogod [1170]: 106.51.37.174, 10.0.2.97 "GET /SOGo/?
code=3c6f02eb-272b-39c9-bf64-
6f2626966923&session_state=c7f0802a8b89acd4f414af9010d3886f4e6f2f16f7e90a22b
5693c0003d2ff95.wokUjNaDRWJiDKYw1JPeiw&state=d1939470d283bf04bc7dd1c60bbae46
2994d5ae6
HTTP/1.1" 302 0/0 0.153 - - 0 - 12


Can some one guide me properly on this?

Best regards
Raghav

Reply via email to