Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArcheBaseController extended with code for handling the authorization #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zozlak
Copy link
Member

@zozlak zozlak commented Sep 23, 2024

  • array | null $userRoles property. Array of user groups and user login usd to check if the user has rights to read a given resource. If user is not logged in, then it is NULL.
  • string | null $userName logged in user name or NULL is user is not logged in.
  • getLoginUrls(string $currentPageUrl): array<string, string> returns login redirection URLs to be used on login buttons.
  • checkAccessRights(array<string> $aclReadValues): bool allows to check if the user has rights to read a resource with a given set of $schema->aclRead property values.

* `array | null $userRoles` property. Array of user groups and user
  login usd to check if the user has rights to read a given resource.
  If user is not logged in, then it is `NULL`.
* `string | null $userName` logged in user name or `NULL` is user is not
  logged in.
* `getLoginUrls(string $currentPageUrl): array<string, string>` returns
  login redirection URLs to be used on login buttons.
* `checkAccessRights(array<string> $aclReadValues): bool` allows to
  check if the user has rights to read a resource with a given set of
  $schema->aclRead property values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant