Dear Opal community,
while automating our project administration and report runs we stumbled
over an unexpected behaviour:
The following opal python client commands only work with username & password
and not with the personal access token (PAT) of our Opal admin account having all rights.
Creating a new project:
opal project -o $URL -tk $TOKEN -add --name $PROJ
Deleting a project:
opal rest -v /project/$PROJ -o $URL -tk $TOKEN -m DELETE
Run a report:
echo $JSON |opal rest -v /project/$PROJ/commands/_report -o $URL -tk $TOKEN -m POST -ct "application/json"
All these commands run into:
(22, 'The requested URL returned error: 403 Forbidden')
Tested on:
Opal 4.x and Opal 3.x
I have double checked that the token works because in the same script
creating a resource works as expected:
$JSON |opal rest -v /project/$PROJ/resources -o $URL -tk $TOKEN -m POST -ct "application/json"
Since I am not sure if that is a bug or a security feature
I asked here first. If you prefer a issue on
https://github.com/obiba/opal-python-client please let me know
Best regards,
Ivo
---
Predoc @ Biomedical Genomics group
Centre Nacional d'Anàlisi Genòmica (CNAG)
Centre de Regulació Genòmica (CRG)
Parc Científic de Barcelona-Torre I Baldiri Reixac, 4
08028 Barcelona
Email: ivo....@cnag.crg.eu
web: www.cnag.crg.eu
--
You received this message because you are subscribed to the Google Groups "obiba-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to obiba-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/obiba-users/e33b6aa2-55cf-42da-aaef-3ea8317b2680n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/obiba-users/a48bd325-8aaa-4d1d-b70d-23df721b4fcfn%40googlegroups.com.