Documentation ¶
Index ¶
Constants ¶
View Source
const ( SuperUserClaim = "_su" CanUpsertClaim = "_readwrite" CanReadClaim = "_read" CanWriteClaim = "_write" CanRemoveClaim = "_remove" CanUpsertUserClaim = "_readwrite.user" CanReadUserClaim = "_read.user" CanReadWriteUserClaim = "_readwrite.user" CanRemoveUserClaim = "_remove.user" )
View Source
const ( IdentityUsersCollection = "Identity.Users" IdentityUserRolesCollection = "Identity.UserRoles" IdentityUserClaimsCollection = "Identity.UserClaims" IdentityTenantCollection = "Identity.Tenants" PasswordScope = "password" RefreshTokenScope = "refresh_token" EmailVerificationScope = "verify_email" )
View Source
const ( SuperUser = "_su" Admin = "_admin" RegularUser = "_user" )
Variables ¶
View Source
var AdminRole = models.UserRole{ ID: Admin, Name: "Administrator", }
View Source
var ReadClaim = models.UserClaim{ ID: CanReadClaim, Name: "Can Read", }
View Source
var ReadWriteClaim = models.UserClaim{ ID: CanUpsertClaim, Name: "Can Read/Write", }
View Source
var RegularUserRole = models.UserRole{ ID: RegularUser, Name: "User", }
View Source
var RemoveClaim = models.UserClaim{ ID: CanRemoveClaim, Name: "Can Remove", }
View Source
var SuRole = models.UserRole{ ID: SuperUser, Name: "Super Administrator", }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.