Skip to content

Implement CertificateSubjectName authentication - #622

Open
Seáic Mac Murchadha (seaic-mac-murchadha) wants to merge 13 commits into
microsoft:mainfrom
seaic-mac-murchadha:actually-add-certificate-subject-name
Open

Seáic Mac Murchadha (seaic-mac-murchadha) wants to merge 13 commits into
microsoft:mainfrom
seaic-mac-murchadha:actually-add-certificate-subject-name

Conversation

@seaic-mac-murchadha

Copy link
Copy Markdown
Contributor

Summary

Following up on #576.

This implements CertificateSubjectName authentication in the same way as the .NET implementation, by resolving a certificate from the Windows certificate store using the configured subject name.

Implementation

  • Add CertificateSubjectName configuration support, including certificate store name and valid-certificate filtering
  • Resolve certificates by subject name from the Windows certificate store
  • Support RSA private keys backed by CNG and legacy CSP providers
  • Generate MSAL client assertions using PS256, with RS256 fallback where required
  • Support SHA-256/SHA-1 certificate thumbprints and optional x5c
  • Integrate the generated assertion with MsalAuth using MSAL's client_assertion flow

Testing

Full test suite passed: 3927 passed, 438 skipped.

Resolves #348.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement CertificateSubjectName auth type

1 participant