microsoft / SPID-and-Digital-Identity-Enabler

This repo contains the SPIDProxy code and several ADFS/Azure B2C related scripts and assets. SPIDProxy allows to communicate with SPID, CIE and eIDAS. The repo also contains a web app enabling CNS authentication through ADFS and AAD B2C.
MIT License
27 stars 12 forks source link

Support CNS with missing SN and G in Subject DN #73

Closed fume closed 4 months ago

fume commented 4 months ago

Some CNS cards don't have the Surname and GivenName in the subject which causes problems when using the CNS Proxy with AAD B2C. With this PR, when the SN or G field are missing from the Subject DN, placeholder values can be used instead (See CNSCertificate section in appsettings.json).