mirror of
https://codeberg.org/pfzetto/axum-oidc
synced 2025-12-09 22:55:17 +01:00
fix: issuer URL at / path
Previously the issuer url was received as an http::Uri. When it was converted into a String, a `/` was appended which caused the IssuerURL validation check in openidconnect to fail. Now the IssuerURL is received as a String.
This commit is contained in:
parent
19adcbabd2
commit
fa5faed004
2 changed files with 3 additions and 7 deletions
|
|
@ -195,12 +195,12 @@ impl<AC: AdditionalClaims> Builder<AC, ClientCredentials, (), HttpClient, Redire
|
|||
/// discover issuer details
|
||||
pub async fn discover(
|
||||
self,
|
||||
issuer: impl Into<Uri>,
|
||||
issuer: String,
|
||||
) -> Result<
|
||||
Builder<AC, ClientCredentials, OpenidconnectClient<AC>, HttpClient, RedirectUrl>,
|
||||
Error,
|
||||
> {
|
||||
let issuer_url = IssuerUrl::new(issuer.into().to_string())?;
|
||||
let issuer_url = IssuerUrl::new(issuer)?;
|
||||
let http_client = self.http_client.0.clone();
|
||||
let provider_metadata = ProviderMetadata::discover_async(issuer_url, &http_client);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue