diff --git a/src/api/client/oidc/authorize.rs b/src/api/client/oidc/authorize.rs index 56de2f85..9be08e51 100644 --- a/src/api/client/oidc/authorize.rs +++ b/src/api/client/oidc/authorize.rs @@ -44,7 +44,7 @@ pub(crate) async fn authorize( .well_known .client .as_ref() - .map(|s| s.domain().expect("well-known client should be a domain")); + .map(|s| s.host_str().expect("well-known client should have a host")); let hostname = hostname.unwrap_or("Continuwuity"); match oauth.authorization_header() { | None => { diff --git a/src/api/client/oidc/login.rs b/src/api/client/oidc/login.rs index 91454e7f..82c7f39e 100644 --- a/src/api/client/oidc/login.rs +++ b/src/api/client/oidc/login.rs @@ -47,7 +47,7 @@ pub(crate) async fn oidc_login( .well_known .client .as_ref() - .map(|s| s.domain().expect("well-known client should have a domain")); + .map(|s| s.host_str().expect("well-known client should have a host")); let hostname = hostname.unwrap_or("Continuwuity"); let authorization_query: AuthorizationQuery = query.into();