Skip to content

Commit cb4c1f9

Browse files
mtt-artisYour Name
andauthored
feat(oidc): allow sub domain on localhost (#1188)
Co-authored-by: Your Name <you@example.com>
1 parent cc55a3d commit cb4c1f9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/webserver/oidc.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,9 @@ fn make_oidc_client(
916916
)
917917
})?;
918918
let needs_http = match redirect_url.url().host() {
919-
Some(openidconnect::url::Host::Domain(domain)) => domain == "localhost",
919+
Some(openidconnect::url::Host::Domain(domain)) => {
920+
domain == "localhost" || domain.ends_with(".localhost")
921+
}
920922
Some(openidconnect::url::Host::Ipv4(_) | openidconnect::url::Host::Ipv6(_)) => true,
921923
None => false,
922924
};

0 commit comments

Comments
 (0)