sara-nl / irods-msi-persistent-id

iRODS microservices for managing EPIC PIDs
Other
0 stars 0 forks source link

irods_pid.json username and prefix #11

Closed cookie33 closed 5 years ago

cookie33 commented 5 years ago

The lookup section has prefix. But not the username to authenticate. These might differ.

  "lookup":{
    "url": "https://epic5.storage.surfsara.nl/hrls/handles",
    "port": 8003,
    "prefix": "21.T12995",
    "password": "<<< PASSWORD >>>",
    "insecure": true,
    "limit": null,
    "page": null,
    "before_create": true,
    "key": "URL",
    "value": "{IRODS_WEBDAV_PREFIX}{OBJECT}"
  },

It is possible to do following: curl -u a:<password> https::8002/hrls/handles/?URL=bladieblaThis shows that the username isa`, but the prefix is something different.

So is the prefix in the config the same as the username? Better to split them in two. We have f.i.: