Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAuthorization ¶
func CheckAuthorization(subject string, permission profileutils.PermissionInput) (bool, error)
CheckAuthorization is used to check the user permissions
func CheckPemissions ¶
func CheckPemissions(subject string, input profileutils.PermissionInput) (bool, error)
CheckPemissions is used to check whether the permissions of a subject are set
func IsAuthorized ¶
func IsAuthorized(user *profileutils.UserInfo, permission profileutils.PermissionInput) (bool, error)
IsAuthorized checks if the subject identified by their email has permission to access the specified resource currently only known internal anonymous users and external API Integrations emails are checked, internal and default logged in users have access by default. for subjects identified by their phone number normalize the phone and omit the first (+) character
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.