constants

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL