This is a sample / reference repository. It is not a hardened production system.
Do not rely on this code as-is to protect real workloads. The purpose
is to teach Microsoft Entra ID auth patterns; production deployments
must apply the hardening notes inline in the code and in docs/.
If you find a security issue in this repository, please do not open a public GitHub issue. Instead, use GitHub's private vulnerability reporting:
- Open the repository's Security tab.
- Click Report a vulnerability.
- Describe the issue and (if possible) the fix.
You can expect an initial response within a few days. Critical issues
will be patched on the main branch and called out in the release
notes.
The following items are intentionally present as teaching contrast and should not be copied into production code:
- The client secret pattern (documented in
docs/credential-patterns/client-secret.md, not deployed) — the worst credential type. The file documents why and points at better options. - Some package versions may carry
NU1902/NU1903advisories; these surface as build warnings on purpose so they're visible. See the dotnet-engineering-guide checklist for the rotation policy.
- Secrets are never committed.
appsettings*.jsononly carries zero-GUID placeholders; real values live indotnet user-secrets, Key Vault, or environment variables. - The CI workflow runs build + tests +
dotnet format --verify-no-changeson every PR.