From b6be8b08090f762fa01e938e2eef0383452be8e5 Mon Sep 17 00:00:00 2001 From: Simone Di Franco Date: Thu, 20 Apr 2023 12:21:46 +0200 Subject: [PATCH] Update Metadata Element ServiceName Issue #11 --- .../Models/ServiceProviders/ServiceProviderStandard.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CIE.AspNetCore.Authentication/CIE.AspNetCore.Authentication/Models/ServiceProviders/ServiceProviderStandard.cs b/CIE.AspNetCore.Authentication/CIE.AspNetCore.Authentication/Models/ServiceProviders/ServiceProviderStandard.cs index 4fafde9..8d5c867 100644 --- a/CIE.AspNetCore.Authentication/CIE.AspNetCore.Authentication/Models/ServiceProviders/ServiceProviderStandard.cs +++ b/CIE.AspNetCore.Authentication/CIE.AspNetCore.Authentication/Models/ServiceProviders/ServiceProviderStandard.cs @@ -63,7 +63,7 @@ public override (string result, string contentType) Serialize() }).ToArray(), AttributeConsumingService = AttributeConsumingServices.Select(s => new Saml.SP.AttributeConsumingServiceType(){ index = s.Index, - ServiceName = new Saml.SP.UUID[]{ new Saml.SP.UUID(){lang = "", Value = Guid.NewGuid().ToString() } },//TODO: capire se posso rigenerarlo ogni volta o se serve salvarlo in qualche modo + ServiceName = new Saml.SP.UUID[]{ new Saml.SP.UUID(){lang = "", Value = "urn:uuid:" + Guid.NewGuid().ToString() } },//TODO: capire se posso rigenerarlo ogni volta o se serve salvarlo in qualche modo ServiceDescription = new Saml.SP.localizedNameType[]{ new Saml.SP.localizedNameType(){lang = Language, Value = s.ServiceDescription } }, RequestedAttribute = s.ClaimTypes.Select(c => new Saml.SP.RequestedAttributeType(){ NameFormat = SamlConst.RequestedAttributeNameFormat,