|
|
The following configuration files are placed in _/opt/eudat/b2safe/conf_ :
|
|
|
|
|
|
- authz.map.json: it contains the assertions for the [authorization mechanism](https://github.com/EUDAT-B2SAFE/B2SAFE-core/wiki/Documentation#authorization)
|
|
|
`{
|
|
|
"assertion 1":
|
|
|
{ "subject":
|
|
|
[ "jack, james, master*" ],
|
|
|
"action":
|
|
|
[ "read" ],
|
|
|
"target":
|
|
|
[ "*" ]
|
|
|
}
|
|
|
}`
|
|
|
the **subject** list can include iRODS user names, who are authorized to execute the actions listed in the **action** list against the targets of the **target** list. The wild character "*" is supported.
|
|
|
|
|
|
- credentials: they are the credentials for the python client which is the bridge between the B2SAFE and the PID registry
|
|
|
`{
|
|
|
"baseuri": "https://epic.sara.nl/v2_test/handles/",
|
|
|
"username": "XXX",
|
|
|
"prefix": "ZZZ",
|
|
|
"password": "YYYYYYYY",
|
|
|
"accept_format": "application/json",
|
|
|
"debug" : "False"
|
|
|
}`
|
|
|
pay attention to use the character "/" at the end of the **baseuri**. And do not set **debug** to "True" when you are executing the B2SAFE irods rules.
|
|
|
|
|
|
- log.manager.conf: this is the configuration for the logging mechanism
|
|
|
`{
|
|
|
"log_level": "DEBUG",
|
|
|
"log_dir": "/srv/irods/current/modules/B2SAFE/log"
|
|
|
}`
|
|
|
|
|
|
- metadataManager.conf: this is for the experimental metadata management feature, which is disabled by default
|
|
|
> [Logging]
|
|
|
> log_level=INFO
|
|
|
> log_file=/var/log/irods/metadataManager.log |