SDK reference / Models / UserPools

UserPool

Kind: class

Namespace: Egulu.Sdk.Models.UserPools

A user pool: the directory of one application's end users, its sign-in rules and its own issuer and signing keys. The pool's users, clients, keys,codes and sessions are deleted with the pool and with its project.

Properties

NameTypeJSON nameDescription
AccentColorstring?accentColorThe accent colour of the hosted pages, `#rrggbb`. The pages use the nearest of a fixed palette; `accentColorUsed` says which.
AccentColorUsedstring?accentColorUsedThe palette colour the hosted pages use for `accentColor`.
AccessTokenSecondsint?accessTokenSecondsAccess token lifetime in seconds, 300 to 3600. Default 600.
AllowedEmailDomainsList<string>?allowedEmailDomainsWhen not empty, only addresses at these domains (lower-case, at most 20) may sign up or be created.
AllowedOriginsList<string>?allowedOriginsThe origins a passkey ceremony of this pool may run from.
AttributeSchemaList<Models.UserPools.PoolAttribute>?attributeSchemaThe custom attributes the pool keeps for its users (at most 20). A value is a string (at most 256 bytes), a number or a boolean; all of one user's values are at most 4 KiB.
ClientCountint?clientCountHow many clients and users the pool holds now.
CreateTimeDateTimeOffset?createTimeThe createTime property
DisplayNamestring?displayNameUp to 128 characters.
Etagstring?etag"{generation}"; send it back in If-Match.
IdTokenSecondsint?idTokenSecondsID token lifetime in seconds, 300 to 3600. Default 600.
IdentityProviderModels.UserPools.PoolIdentityProvider?identityProviderThe pool's outside OpenID provider, when it has one. Set with `setIdentityProvider`.
Issuerstring?issuerThe pool's OIDC issuer, `https://auth.egulu.app/{uid}`. Discovery is at `{issuer}/.well-known/openid-configuration`, the keys at `{issuer}/jwks`.
KeysModels.UserPools.PoolKeyState?keysThe versions of the signing key and when the newest was added.
LogoUrlstring?logoUrlThe logo shown on the hosted pages: an https URL of at most 2048 characters. The only branding besides the accent colour.
MfaPolicyModels.UserPools.UserPool_mfaPolicy?mfaPolicyThe pool's second factor (an authenticator app): OFF, OPTIONAL (a user may enrol) or REQUIRED. A passkey sign-in is never asked for a code. Default OFF.
Namestring?nameprojects/{project}/userPools/{userPool}.
PasskeyRequirementModels.UserPools.UserPool_passkeyRequirement?passkeyRequirementREQUIRED: an e-mail code may only sign up and recover; a user without a passkey is asked to register one at first sign-in. Default OPTIONAL.
RelyingPartyIdstring?relyingPartyIdThe relying-party ID of the pool's passkeys.
RequestsPerMinuteint?requestsPerMinuteRequests per minute the pool's public endpoints accept, 1 to 10000. Default 60.
SessionHoursint?sessionHoursThe hosted page's own session in hours, 1 to 24. Default 8.
SignInMethodsList<Models.UserPools.UserPool_signInMethods?>?signInMethodsHow end users may sign in (at least one). Default: both.
SignUpModels.UserPools.UserPool_signUp?signUpWho may create an account on the hosted page: OPEN, INVITE_ONLY (an admin creates the user; the default) or CLOSED.
Uidstring?uidUUIDv7, never reused. It is the last path segment of the issuer.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property
UserCountint?userCountThe userCount property