From 389ffdb3595a49a3b6a6f17f23dddaa548631d4d Mon Sep 17 00:00:00 2001 From: jxnkwlp Date: Wed, 8 Nov 2023 17:51:06 +0800 Subject: [PATCH] fix saml2 idp metadata as file read error --- .../source/Configuration/ConfigurationManager.cs | 4 ++-- .../source/Passingwind.AspNetCore.Authentication.Saml2.csproj | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Authentication.Saml2/source/Configuration/ConfigurationManager.cs b/src/Authentication.Saml2/source/Configuration/ConfigurationManager.cs index 1d9ceb7..e82b8bc 100644 --- a/src/Authentication.Saml2/source/Configuration/ConfigurationManager.cs +++ b/src/Authentication.Saml2/source/Configuration/ConfigurationManager.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Net.Http; using System.Threading; @@ -45,7 +45,7 @@ public async Task GetConfigurationAsync(CancellationToken ca if (_idpMetadataUri.IsFile) { - _ = entityDescriptor.ReadIdPSsoDescriptorFromFile(_idpMetadataUri.ToString()); + _ = entityDescriptor.ReadIdPSsoDescriptorFromFile(_idpMetadataUri.LocalPath); } else { diff --git a/src/Authentication.Saml2/source/Passingwind.AspNetCore.Authentication.Saml2.csproj b/src/Authentication.Saml2/source/Passingwind.AspNetCore.Authentication.Saml2.csproj index d011379..ae2aedf 100644 --- a/src/Authentication.Saml2/source/Passingwind.AspNetCore.Authentication.Saml2.csproj +++ b/src/Authentication.Saml2/source/Passingwind.AspNetCore.Authentication.Saml2.csproj @@ -24,7 +24,7 @@ MIT True snupkg - 0.2.0 + 0.2.1