Protected ReadonlyappProtected ReadonlycacheProtectedcommonProtectedcommonProtected ReadonlydataProtectedloggerProtected ReadonlyloggerProtected ReadonlypermissionProtecteduserAllows your application to create a special context for cases where it needs to perform tasks internally without an external user request.
This method generates a BaseServiceMethodContext with a app service account user, which can be used to call other services within the application.
ProtectedextractExtract permissions from permission groups
permission group ids with scopes (like g:bo:core:brands[org]:edit)
Find user by id and resolve permissions
user id
Returns guest user with resolved permissions Used in auth-n decorators when user is not authorized
Resolves test user. This method must be implemented by child project.
Test parameters.
The resolved test user.
ProtectedresolveResolve user permissions. Extracts permissions from user roles and merges them with common permissions and custom user permissions Resolves named scopes and replace it by ids
user entity
User manager helps to resolve user in auth-n decorators Provide current user with permissions for each request context