Commit 3407cc63 authored by Steffen Köhler's avatar Steffen Köhler
Browse files

Assign initial permissions without token.

parent 39204b86
Pipeline #10768 canceled with stages
in 2 minutes and 28 seconds
......@@ -40,6 +40,7 @@ docker_publish_alpha:
--docker-config "${DOCKER_ALPHA_AUTH_CONFIG}" \
--name ${alpha_repo} \
--tag ${CI_COMMIT_REF_SLUG}
--tag alpha
dependencies:
- docker_build
tags:
......
......@@ -564,9 +564,8 @@ get_permissions() {
-X GET \
-H "Content-type: application/json" \
-H "X-Okapi-Tenant: ${tenant_id}" \
-H "X-Okapi-Token: ${okapi_token}" \
--connect-timeout ${CURL_CONNECT_TIMEOUT} \
"${OKAPI_URL}/perms/permissions?query=visible%3D%3Dtrue&length=500" 2>&1`
"${OKAPI_URL}/perms/permissions?query=visible%3D%3Dtrue&length=2000" 2>&1`
case "${result##*|}" in
200|201)
......@@ -600,7 +599,6 @@ EOF
-X POST \
-H "Content-type: application/json" \
-H "X-Okapi-Tenant: ${tenant_id}" \
-H "X-Okapi-Token: ${okapi_token}" \
--connect-timeout ${CURL_CONNECT_TIMEOUT} \
"${OKAPI_URL}/perms/users/${permission_id}/permissions" \
-d @- 2>&1`
......@@ -641,11 +639,10 @@ main() {
&& create_admin \
&& create_admin_credentials \
&& create_admin_permission "perms.all" \
&& install_modules $modules \
&& login \
&& get_permissions \
&& assign_permissions $permissions
&& install_modules $modules \
&& login
return $?
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment