add context to oidc init error

This commit is contained in:
mbecker20
2024-10-07 06:10:12 -04:00
parent 0600276b43
commit 8ca8f7eddd

View File

@@ -42,7 +42,10 @@ pub async fn init_default_oidc_client() {
})?,
async_http_client,
)
.await?;
.await
.context(
"Failed to get OIDC /.well-known/openid-configuration",
)?;
// Create an OpenID Connect client by specifying the client ID, client secret, authorization URL
// and token URL.