<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=MindAttic.Authentication%2FCONFIGURATION</id>
	<title>MindAttic.Authentication/CONFIGURATION - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=MindAttic.Authentication%2FCONFIGURATION"/>
	<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=MindAttic.Authentication/CONFIGURATION&amp;action=history"/>
	<updated>2026-12-06T22:03:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>https://mindattic.com/wiki/docs/index.php?title=MindAttic.Authentication/CONFIGURATION&amp;diff=541&amp;oldid=prev</id>
		<title>Docs Sync: md2wiki: sync from MindAttic.Docs</title>
		<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=MindAttic.Authentication/CONFIGURATION&amp;diff=541&amp;oldid=prev"/>
		<updated>2026-11-29T20:25:20Z</updated>

		<summary type="html">&lt;p&gt;md2wiki: sync from MindAttic.Docs&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Configuration reference =&lt;br /&gt;
&lt;br /&gt;
Everything is &amp;lt;strong&amp;gt;secure-by-default&amp;lt;/strong&amp;gt;: the only things you &amp;lt;em&amp;gt;must&amp;lt;/em&amp;gt; supply are the Vault secrets and (in prod) the Data Protection key-ring wiring. All config keys below are optional overrides with the defaults shown.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Vault secrets — &amp;lt;code&amp;gt;MindAttic:Vault:Security:&amp;amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; (REQUIRED) ==&lt;br /&gt;
&lt;br /&gt;
Resolved through the fail-closed &amp;lt;code&amp;gt;IAuthSecrets&amp;lt;/code&amp;gt; (a blank value throws; the app won&amp;#039;t start). Dev: &amp;lt;code&amp;gt;%APPDATA%\MindAttic\Security&amp;lt;/code&amp;gt;. Prod: env vars / Azure Key Vault (read-only).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Secret name&lt;br /&gt;
! Required&lt;br /&gt;
! What it is&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;pepper.v1&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;strong&amp;gt;yes&amp;lt;/strong&amp;gt;&lt;br /&gt;
| ≥32 random bytes, base64. HMAC key for the password pre-hash. Different trust domain than the DB.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;bootstrap-token&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;strong&amp;gt;yes (first run)&amp;lt;/strong&amp;gt;&lt;br /&gt;
| ≥12-char string — the initial admin password (forced-change on first login). &amp;lt;strong&amp;gt;Rotate immediately after seeding.&amp;lt;/strong&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;dp-kek&amp;lt;/code&amp;gt;&lt;br /&gt;
| dev / non-Azure prod&lt;br /&gt;
| Key-encryption key for the dev Data Protection ring (AES).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;reset-token-key&amp;lt;/code&amp;gt;&lt;br /&gt;
| when reset enabled&lt;br /&gt;
| HMAC key for password-reset tokens at rest.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;captcha-secret&amp;lt;/code&amp;gt;&lt;br /&gt;
| when CAPTCHA enabled&lt;br /&gt;
| Server-side CAPTCHA verification secret.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Pepper rotation adds &amp;lt;code&amp;gt;pepper.v2&amp;lt;/code&amp;gt;, … and sets &amp;lt;code&amp;gt;Crypto:CurrentPepperKeyId&amp;lt;/code&amp;gt;; older ids stay readable until all rows re-hash. See [[MindAttic.Authentication/OPERATIONS|&amp;lt;code&amp;gt;OPERATIONS.md&amp;lt;/code&amp;gt;]].&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;MindAttic:Auth:Crypto&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;AuthCryptoOptions&amp;lt;/code&amp;gt;) ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key&lt;br /&gt;
! Default&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;MemoryKiB&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;65536&amp;lt;/code&amp;gt;&lt;br /&gt;
| 64 MiB. Floor 19456.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Iterations&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;3&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;strong&amp;gt;Calibrate on prod hardware&amp;lt;/strong&amp;gt; to ~250–500 ms/verify. Floor 2.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Parallelism&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;4&amp;lt;/code&amp;gt;&lt;br /&gt;
| ≤ 2× physical cores. Floor 1.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;SaltBytes&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;HashBytes&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;16&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;32&amp;lt;/code&amp;gt;&lt;br /&gt;
| Floors 16 / 32.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;MinPasswordChars&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;MaxPasswordChars&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;12&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;128&amp;lt;/code&amp;gt;&lt;br /&gt;
| Max caps Argon2/HMAC input (DoS guard).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;CurrentPepperKeyId&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;quot;v1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
| New hashes use &amp;lt;code&amp;gt;pepper.&amp;amp;lt;id&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;MaxConcurrentHashes&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; ⇒ &amp;lt;code&amp;gt;ProcessorCount&amp;lt;/code&amp;gt;. Caps peak Argon2 RAM = N × MemoryKiB.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Invalid values &amp;lt;strong&amp;gt;fail startup&amp;lt;/strong&amp;gt; (&amp;lt;code&amp;gt;ValidateOrThrow&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;MindAttic:Auth:Session&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;AuthSessionOptions&amp;lt;/code&amp;gt;) ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key&lt;br /&gt;
! Default&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;AbsoluteTimeout&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;08:00:00&amp;lt;/code&amp;gt; (8 h)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;IdleTimeout&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;00:30:00&amp;lt;/code&amp;gt; (30 m)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;RevalidationInterval&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;00:01:00&amp;lt;/code&amp;gt; (1 m) — cookie + circuit stamp recheck cadence&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;MindAttic:Auth:Mfa&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;MfaOptions&amp;lt;/code&amp;gt;) ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key&lt;br /&gt;
! Default&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Issuer&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;quot;MindAttic&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Digits&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;PeriodSeconds&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;WindowSteps&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;6&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;30&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;SecretBytes&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;20&amp;lt;/code&amp;gt; (160-bit)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;RecoveryCodeCount&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;RecoveryCodeBytes&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;10&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;10&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;PendingEnrollmentMinutes&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;10&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;RequireForAdmin&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;MindAttic:Auth:Policy&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;AuthPolicyOptions&amp;lt;/code&amp;gt;) ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key&lt;br /&gt;
! Default&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;MinLength&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;MaxLength&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;12&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;128&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;CheckHibp&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;HibpRangeBaseUrl&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;https&amp;amp;#58;//api.pwnedpasswords.com/range/&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;HibpTimeoutMs&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;2000&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;HibpFailOpen&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; (offline corpus still applies; skip is audited)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;HistoryDepth&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;5&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;MindAttic:Auth:Reset&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;AuthResetOptions&amp;lt;/code&amp;gt;) ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key&lt;br /&gt;
! Default&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;PublicBaseUrl&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;quot;&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
| Absolute origin for reset links (e.g. &amp;lt;code&amp;gt;https&amp;amp;#58;//ideas.mindattic.com&amp;lt;/code&amp;gt;); never derived from &amp;lt;code&amp;gt;Request.Host&amp;lt;/code&amp;gt;. Required for reset email: the SMTP sender refuses a relative link.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ResetPath&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;/account/reset&amp;lt;/code&amp;gt;&lt;br /&gt;
| Page the link points at; the token is appended as &amp;lt;code&amp;gt;?token=&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;TokenTtlMinutes&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;15&amp;lt;/code&amp;gt;&lt;br /&gt;
|  &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;MaxEmailsPerHour&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;3&amp;lt;/code&amp;gt;&lt;br /&gt;
| Per account.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;MindAttic:Auth:Organizations&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;AuthOrganizationOptions&amp;lt;/code&amp;gt;, opt-in) ==&lt;br /&gt;
&lt;br /&gt;
Read only when the host calls &amp;lt;code&amp;gt;AddMindAtticOrganizations&amp;lt;/code&amp;gt;; the host&amp;#039;s configure callback runs after binding.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key&lt;br /&gt;
! Default&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;OwnerRole&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;Owner&amp;lt;/code&amp;gt;&lt;br /&gt;
| The protected role: only an owner (or platform/system code passing no acting role) grants, changes or removes it, and an organization keeps at least one active holder. Empty disables the protection.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Roles&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;[]&amp;lt;/code&amp;gt;&lt;br /&gt;
| Roles an organization may assign. Empty accepts any well-formed role name (letters, digits, &amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt;, up to 64); set it to refuse typos.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;MfaRequiredRoles&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;[]&amp;lt;/code&amp;gt;&lt;br /&gt;
| Roles that require MFA (see docs/ORGANIZATIONS.md).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;MembershipClaimType&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;ma:org&amp;lt;/code&amp;gt;&lt;br /&gt;
| Claim type of the per-membership claim, `{organizationId:N}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;MindAttic:Auth:Organizations:Invitations&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;AuthInvitationOptions&amp;lt;/code&amp;gt;, opt-in) ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key&lt;br /&gt;
! Default&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;PublicBaseUrl&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;quot;&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
| Absolute origin for invitation links; empty falls back to &amp;lt;code&amp;gt;Reset:PublicBaseUrl&amp;lt;/code&amp;gt;; invitations are refused without an absolute URL.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;AcceptPath&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;/account/accept-invite&amp;lt;/code&amp;gt;&lt;br /&gt;
| Page that renders &amp;lt;code&amp;gt;MaAcceptInvitation&amp;lt;/code&amp;gt;; token appended as &amp;lt;code&amp;gt;?token=&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;TtlHours&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;72&amp;lt;/code&amp;gt;&lt;br /&gt;
| Link lifetime from each send.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;MaxSendsPerInvitation&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;5&amp;lt;/code&amp;gt;&lt;br /&gt;
| First send plus resends.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;MinResendIntervalSeconds&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;60&amp;lt;/code&amp;gt;&lt;br /&gt;
|  &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;MaxInvitationsPerOrganizationPerHour&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;500&amp;lt;/code&amp;gt;&lt;br /&gt;
|  &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;MaxBulkRows&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;200&amp;lt;/code&amp;gt;&lt;br /&gt;
| Per CSV upload.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;AccountRole&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;User&amp;lt;/code&amp;gt;&lt;br /&gt;
| Library role of accounts created by accepting.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Auth email — &amp;lt;code&amp;gt;MindAttic:Vault:Notifications:email&amp;lt;/code&amp;gt; (optional) ==&lt;br /&gt;
&lt;br /&gt;
MindAttic.Vault &amp;lt;code&amp;gt;Notifications&amp;lt;/code&amp;gt; format, shared with MindAttic.Psst. Dev: &amp;lt;code&amp;gt;%APPDATA%\MindAttic\Notifications\providers.json&amp;lt;/code&amp;gt;. Prod: &amp;lt;code&amp;gt;MindAttic&amp;amp;#95;_Vault&amp;amp;#95;_Notifications&amp;amp;#95;_email&amp;amp;#95;_&amp;amp;lt;key&amp;gt;&amp;lt;/code&amp;gt; app settings or Key Vault references. Never appsettings/git.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key&lt;br /&gt;
! Required&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;smtpHost&amp;lt;/code&amp;gt;&lt;br /&gt;
| yes&lt;br /&gt;
|  &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;smtpPort&amp;lt;/code&amp;gt;&lt;br /&gt;
| no&lt;br /&gt;
| Default &amp;lt;code&amp;gt;587&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;465&amp;lt;/code&amp;gt; = implicit TLS; every other port requires STARTTLS.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;password&amp;lt;/code&amp;gt;&lt;br /&gt;
| yes&lt;br /&gt;
| SMTP login. The password is never logged.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;from&amp;lt;/code&amp;gt;&lt;br /&gt;
| yes&lt;br /&gt;
| &amp;lt;code&amp;gt;addr@example.com&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;Name &amp;amp;lt;addr@example.com&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
All required keys present ⇒ mail is delivered (&amp;lt;code&amp;gt;SmtpAuthEmailSender&amp;lt;/code&amp;gt;). None ⇒ log-only fallback with a startup warning. Some ⇒ the same fallback, and the warning names the missing keys.&lt;br /&gt;
&lt;br /&gt;
== Host code options (&amp;lt;code&amp;gt;MindAtticAuthOptions&amp;lt;/code&amp;gt;, set in &amp;lt;code&amp;gt;AddMindAtticAuthentication&amp;lt;/code&amp;gt;) ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Member&lt;br /&gt;
! Default&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;AppName&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;quot;App&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
| Per-app Data-Protection isolation. Set per app (&amp;lt;code&amp;gt;&amp;quot;Ideas&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;Prose&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;Tutor&amp;quot;&amp;lt;/code&amp;gt;).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;IsProduction&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; ⇒ requires &amp;lt;code&amp;gt;ConfigureDataProtection&amp;lt;/code&amp;gt; (fail-closed).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ConfigureDataProtection&amp;lt;/code&amp;gt;&lt;br /&gt;
| —&lt;br /&gt;
| PROD: persist + protect the key ring (Azure Blob + Key Vault).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;DevKeyRingPath&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;%APPDATA%\MindAttic\DataProtection\{AppName}&amp;lt;/code&amp;gt;&lt;br /&gt;
| Dev key ring location.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ConfigureAdditionalPolicies&amp;lt;/code&amp;gt;&lt;br /&gt;
| —&lt;br /&gt;
| App-specific authorization policies (never redefine &amp;lt;code&amp;gt;MaPolicies.Admin&amp;lt;/code&amp;gt;).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Connection string ==&lt;br /&gt;
&lt;br /&gt;
The library does &amp;lt;strong&amp;gt;not&amp;lt;/strong&amp;gt; own a connection string — it operates over the app&amp;#039;s &amp;lt;code&amp;gt;DbContext&amp;lt;/code&amp;gt;. Configure your context&amp;#039;s connection as you already do (Vault/&amp;lt;code&amp;gt;IConfiguration&amp;lt;/code&amp;gt;/env). The &amp;lt;code&amp;gt;auth&amp;lt;/code&amp;gt; schema is created by your app&amp;#039;s EF migration.&lt;br /&gt;
&lt;br /&gt;
== Example &amp;lt;code&amp;gt;appsettings.json&amp;lt;/code&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code lang-jsonc&amp;quot;&amp;gt;{&lt;br /&gt;
  &amp;quot;MindAttic&amp;quot;: {&lt;br /&gt;
    &amp;quot;Auth&amp;quot;: {&lt;br /&gt;
      &amp;quot;Crypto&amp;quot;:  { &amp;quot;Iterations&amp;quot;: 3, &amp;quot;CurrentPepperKeyId&amp;quot;: &amp;quot;v1&amp;quot; },&lt;br /&gt;
      &amp;quot;Session&amp;quot;: { &amp;quot;AbsoluteTimeout&amp;quot;: &amp;quot;08:00:00&amp;quot;, &amp;quot;IdleTimeout&amp;quot;: &amp;quot;00:30:00&amp;quot; },&lt;br /&gt;
      &amp;quot;Mfa&amp;quot;:     { &amp;quot;Issuer&amp;quot;: &amp;quot;MindAttic Ideas&amp;quot; },&lt;br /&gt;
      &amp;quot;Policy&amp;quot;:  { &amp;quot;CheckHibp&amp;quot;: true }&lt;br /&gt;
    }&lt;br /&gt;
    // Vault:Security:* secrets come from %APPDATA% (dev) or Key Vault/env (prod), never appsettings/git.&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-crumb&amp;quot;&amp;gt;Part of [[MindAttic.Authentication]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-source&amp;quot;&amp;gt;From [https://github.com/mindattic/MindAttic.Authentication/blob/main/docs/CONFIGURATION.md MindAttic.Authentication/docs/CONFIGURATION.md] via MindAttic.Docs; synced automatically, so edit the repo, not this page.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:MindAttic.Authentication]]&lt;/div&gt;</summary>
		<author><name>Docs Sync</name></author>
	</entry>
</feed>