Skip to content

MJCZone.DapperMatic.AspNetCore.Accounts ​

Assembly: MJCZone.DapperMatic.AspNetCore

Classes ​

NameDescription
DapperMaticAcceptRequestAccepts an invitation: signed in (the invitation's email, confirmed), or with the new account's password.
DapperMaticAccountLinksWhere emails send people. Each is a template: <c>{token}</c>, <c>{userId}</c>, <c>{code}</c> and <c>{email}</c> are replaced (URL-encoded).
DapperMaticAccountOptionsBuilt-in accounts: people who sign in to DapperMatic with an email and a password, on ASP.NET Core Identity, kept in DapperMatic's tables. Off until <c>dm.AddUserAccounts()</c>.
DapperMaticFirstAdminThe first administrator.
DapperMaticInvitationAn invitation to an email: to a tenant, with roles there, or to the platform, with platform roles. Accepted once, before it expires; its token is kept only as a hash.
DapperMaticJwtKeyA JWT signing key.
DapperMaticJwtOptionsThe built-in accounts' access tokens as JSON Web Tokens, which other services check with the keys DapperMatic publishes (<c>auth/jwks.json</c>). Signed with RS256 (an RSA key of 2,048 bits or more) or ES256 (a P-256 key) only.
DapperMaticLoginRequestSigns in to a built-in account: an email and password (and a second factor when it has one), in a tenant or none.
DapperMaticMembershipA built-in account's place in a tenant: a member's, or a platform user's grant (which expires, and which the audit names). Its roles are the account's roles there.
DapperMaticRegisterRequestSigns an email up: an email to it carries the token that makes the account, with its password.
DapperMaticSetupRequestMakes the first administrator, with the setup code from the log.
DapperMaticSignUpOptionsWho may make an account themselves.
DapperMaticSwitchRequestMoves a signed-in account to another of its tenants, or to the platform (null).
DapperMaticUserA built-in account: a person who signs in to DapperMatic with an email and a password (ASP.NET Core Identity's sign-in, kept in DapperMatic's tables). Their roles are per place: the platform's (with no tenant), or a membership's in a tenant.
DapperMaticUserSessionA sign-in: what a login started, which its refreshes keep going; ended by signing out, or the account turned off.

Interfaces ​

NameDescription
IDapperMaticEmailSenderSends the built-in accounts' emails: the application's own (SMTP, a mail service). Without one, emails are logged, with their links and codes only in Development.

Enums ​

NameDescription
DapperMaticEmailKindWhat an email from the built-in accounts is about.