final class StaticAuthProvider implements AuthProviderInterface (View source)

A simple auth provider that just statically returns the same user id that it was given upon construction time and grants all privileges

Methods

__construct(UserId $userId)

No description

UserId|null
getAuthenticatedUserId()

No description

canReadNodesFromWorkspace(WorkspaceName $workspaceName)

No description

canExecuteCommand(CommandInterface $command)

No description

Details

__construct(UserId $userId)

No description

Parameters

UserId $userId

UserId|null getAuthenticatedUserId()

No description

Return Value

UserId|null

VisibilityConstraints getVisibilityConstraints(WorkspaceName $workspaceName)

No description

Parameters

WorkspaceName $workspaceName

Return Value

VisibilityConstraints

Privilege canReadNodesFromWorkspace(WorkspaceName $workspaceName)

No description

Parameters

WorkspaceName $workspaceName

Return Value

Privilege

Privilege canExecuteCommand(CommandInterface $command)

No description

Parameters

CommandInterface $command

Return Value

Privilege