mirror of
https://github.com/moghtech/komodo.git
synced 2026-09-07 00:01:00 +00:00
pass provider as-is. Authentik users should add a trailing slash
This commit is contained in:
@@ -32,14 +32,9 @@ pub async fn init_default_oidc_client() {
|
||||
return;
|
||||
}
|
||||
async {
|
||||
let provider = config.oidc_provider.to_string();
|
||||
// Use OpenID Connect Discovery to fetch the provider metadata.
|
||||
let provider_metadata = CoreProviderMetadata::discover_async(
|
||||
IssuerUrl::new(if provider.ends_with('/') {
|
||||
provider
|
||||
} else {
|
||||
provider + "/"
|
||||
})?,
|
||||
IssuerUrl::new(config.oidc_provider.clone())?,
|
||||
async_http_client,
|
||||
)
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user