Fix OIDC: Add default domain name to groups that are not email addresses

This commit is contained in:
Maurus Decimus
2026-06-16 21:51:48 +02:00
parent 8f627fbd69
commit 3f2c5632b8
33 changed files with 83 additions and 64 deletions

View File

@@ -472,9 +472,11 @@ impl ParseHttp for Server {
self.is_http_anonymous_request_allowed(session.remote_ip)
.await?;
let path_email = path.find(|segment| segment.contains('@')).map(|segment| {
percent_decode_str(segment).decode_utf8_lossy().into_owned()
});
let path_email = path
.map(|segment| {
percent_decode_str(segment).decode_utf8_lossy().into_owned()
})
.find(|segment| segment.contains('@'));
return self
.handle_autodiscover_v2_request(req.uri().query(), path_email.as_deref())