2017 © Pedro Peláez
 

tao-extension tao-core

TAO core extension

image

oat-sa/tao-core

TAO core extension

  • Friday, July 27, 2018
  • by oat-lionel
  • Repository
  • 26 Watchers
  • 26 Stars
  • 28,196 Installations
  • JavaScript
  • 4 Dependents
  • 0 Suggesters
  • 21 Forks
  • 21 Open issues
  • 100 Versions
  • 6 % Grown

The README.md

tao-core

codecov, (*1)

Webhooks

Description

Webhooks allow you to send a request to remote server based on triggered event, (*2)

How to use it

Register event webhook.

use command \oat\tao\scripts\tools\RegisterEventWebhook to register events that are implementing \oat\tao\model\webhooks\configEntity\WebhookInterface interface., (*3)

i.e:, (*4)

$ php index.php 'oat\tao\scripts\tools\RegisterEventWebhook'
    \ -u "https://example.com"
    \ -m "POST"
    \ -e "<<Class FQN>>"

Check ACL Permissions

In order to check ACL permissions, you can use the PermissionChecker:, (*5)


$permissionChecker = $this->getServiceLocator()->get(oat\tao\model\accessControl\PermissionChecker::class); $permissionChecker->hasWriteAccess('resourceId'); $permissionChecker->hasReadAccess('resourceId'); $permissionChecker->hasGrantAccess('resourceId');

Important: It takes into consideration the current user in the session, if no user is provided., (*6)

Roles Access (rules and action permissions)

Description

Script allow you to apply (add)/revoke (remove) list of rules and/or permissions to a specific roles and actions., (*7)

How to use it

Execute the following command to apply (add) new rules/permissions:, (*8)

$ php index.php 'oat\tao\scripts\tools\accessControl\SetRolesAccess' \
--config [config.json|json_string]

If you want to revoke (remove) them, add --revoke flag:, (*9)

$ php index.php 'oat\tao\scripts\tools\accessControl\SetRolesAccess' \
--revoke \
--config [config.json|json_string]

Config example

{
  "rules": {
    "role": [
      {
        "ext": "extensionIdentifier",
        "mod": "actionControllerName",
        "act": "actionMethodName"
      }
    ]
  },
  "permissions": {
    "controller": {
      "action": {
        "rule1": "READ",
        "rule2": "WRITE"
      }
    }
  }
}

Environment variables

Here you can find the environment variables including feature flags, (*10)

Variable Description Default value
FEATURE_FLAG_LISTS_DEPENDENCY_ENABLED Enable Remote Lists Dependency feature -
FEATURE_FLAG_ADVANCED_SEARCH_DISABLED Disable advanced search feature, if set to 1 -
FEATURE_FLAG_STATISTIC_METADATA_IMPORT Enable statistics metadata import -
FEATURE_FLAG_CKEDITOR_SOURCEDIALOG Enable source editing for ckeditor false
FEATURE_FLAG_SOLAR_DESIGN_ENABLED Activate the Solar Design mode -
GOOGLE_APPLICATION_CREDENTIALS Path to GCP credentials path -
DATA_STORE_STATISTIC_PUB_SUB_TOPIC Topic name for statistic metadata Pub/Sub -
REDIRECT_AFTER_LOGOUT_URL Allows to configure the redirect after logout via environment variable. The fallback is the configured redirect on urlroute.conf.php -
PORTAL_URL The Portal url used on the back button of Portal theme -
FEATURE_FLAG_TRANSLATION_ENABLED Enable access to items/tests translations feature -
TAO_ALLOWED_TRANSLATION_LOCALES Comma separated List of locales available for translations / authoring in the UI. If none provided, all are allowed -
COOKIE_POLICY_CONFIG JSON with CookiePolicy config. Example: {"privacyPolicyUrl":"https://...","cookiePolicyUrl":"https://..."} -
TAO_ID_GENERATOR_MAX_RETRIES Maximum number of retry attempts for unique ID generation on collision 10
TAO_ID_GENERATOR_SHOULD_CHECK_STATEMENTS Enable statement checks during ID generation (set to 1 to enable) 0
TAO_ID_GENERATOR_ID_START Starting value for unique ID generation 1

Routing

Check more information about actions/controllers and routing here, (*11)

Observer implementations

Check the current observer implementations here, (*12)

The Versions

19/07 2018

dev-TAO-6429_allow_return_all_registered_entrypoints

dev-TAO-6429_allow_return_all_registered_entrypoints http://www.taotesting.com

TAO core extension

  Sources   Download

GPL-2.0-only

The Requires

 

by Bertrand Chevrier
by Lionel Lecaque
by Dieter Raber
by Patrick Plichart
by Somsack Sipasseuth

tao oat computer-based-assessment

18/07 2018

dev-feature/TAO-4578/task-queue-for-import-and-export

dev-feature/TAO-4578/task-queue-for-import-and-export http://www.taotesting.com

TAO core extension

  Sources   Download

GPL-2.0-only

The Requires

 

by Bertrand Chevrier
by Lionel Lecaque
by Dieter Raber
by Patrick Plichart
by Somsack Sipasseuth

tao oat computer-based-assessment

10/07 2018

dev-fix/TAO-6416/item-theme-not-applied-when-set-through-delivery-edit

dev-fix/TAO-6416/item-theme-not-applied-when-set-through-delivery-edit http://www.taotesting.com

TAO core extension

  Sources   Download

GPL-2.0-only

The Requires

 

by Bertrand Chevrier
by Lionel Lecaque
by Dieter Raber
by Patrick Plichart
by Somsack Sipasseuth

tao oat computer-based-assessment

27/06 2018
30/05 2018

dev-feature/TAO-6083-expose-compiled-test-through-rest-api

dev-feature/TAO-6083-expose-compiled-test-through-rest-api http://www.taotesting.com

TAO core extension

  Sources   Download

GPL-2.0-only

The Requires

 

by Bertrand Chevrier
by Lionel Lecaque
by Dieter Raber
by Patrick Plichart
by Somsack Sipasseuth

tao oat computer-based-assessment

15/05 2018
11/05 2018

dev-fix/TAO-6074-delivery-assignments-incorrectly-stored

dev-fix/TAO-6074-delivery-assignments-incorrectly-stored http://www.taotesting.com

TAO core extension

  Sources   Download

GPL-2.0-only

The Requires

 

by Bertrand Chevrier
by Lionel Lecaque
by Dieter Raber
by Patrick Plichart
by Somsack Sipasseuth

tao oat computer-based-assessment

28/04 2018

dev-feature/TAO-6229/prohibited-behavior-consolidation

dev-feature/TAO-6229/prohibited-behavior-consolidation http://www.taotesting.com

TAO core extension

  Sources   Download

GPL-2.0-only

The Requires

 

by Bertrand Chevrier
by Lionel Lecaque
by Dieter Raber
by Patrick Plichart
by Somsack Sipasseuth

tao oat computer-based-assessment

28/03 2018
27/03 2018
07/03 2018

dev-feature/TAO-5983/model_id_in_statements_table_should_rely_to_extension

dev-feature/TAO-5983/model_id_in_statements_table_should_rely_to_extension http://www.taotesting.com

TAO core extension

  Sources   Download

GPL-2.0-only

The Requires

 

by Bertrand Chevrier
by Lionel Lecaque
by Dieter Raber
by Patrick Plichart
by Somsack Sipasseuth

tao oat computer-based-assessment

03/03 2018
27/02 2018

dev-feature/TAO-5103/remove-global-constants-load

dev-feature/TAO-5103/remove-global-constants-load http://www.taotesting.com

TAO core extension

  Sources   Download

GPL-2.0-only

The Requires

 

by Bertrand Chevrier
by Lionel Lecaque
by Dieter Raber
by Patrick Plichart
by Somsack Sipasseuth

tao oat computer-based-assessment

02/02 2018

dev-feature/TAO-5898-allow-to-toggle-password-visibility-on-login

dev-feature/TAO-5898-allow-to-toggle-password-visibility-on-login http://www.taotesting.com

TAO core extension

  Sources   Download

GPL-2.0-only

The Requires

 

by Bertrand Chevrier
by Lionel Lecaque
by Dieter Raber
by Patrick Plichart
by Somsack Sipasseuth

tao oat computer-based-assessment

02/02 2018
30/01 2018