Content
View differences
Updated by Sajan Gurung 1 day ago
Try to setup the integration via `/setup` endpoint.
Note: `"authorization_method": true,`
```bash
curl -XPOST 'https://nextcloud.local/index.php/apps/integration_openproject/setup' \
-H'Content-Type: application/json' \
-d'{
"values":{
"openproject_instance_url": "https://op-host",
"authorization_method": true,
"sso_provider_type": "nextcloud_hub",
"targeted_audience_client_id": "client-id",
"setup_project_folder": false,
"setup_app_password": false,
"default_enable_navigation": false,
"default_enable_unified_search": false
}
}' \
-u admin:admin -vk
```
Response: 200❓
```text
< HTTP/2 200
{"status":false}
```
<br>
### Expected
```text
< HTTP/2 400
{
"status":false,
"error": "Invalid authorization method"
}
```
Note: `"authorization_method": true,`
```bash
curl -XPOST 'https://nextcloud.local/index.php/apps/integration_openproject/setup' \
-H'Content-Type: application/json' \
-d'{
"values":{
"openproject_instance_url": "https://op-host",
"authorization_method": true,
"sso_provider_type": "nextcloud_hub",
"targeted_audience_client_id": "client-id",
"setup_project_folder": false,
"setup_app_password": false,
"default_enable_navigation": false,
"default_enable_unified_search": false
}
}' \
-u admin:admin -vk
```
Response: 200❓
```text
< HTTP/2 200
{"status":false}
```
<br>
### Expected
```text
< HTTP/2 400
{
"status":false,
"error": "Invalid authorization method"
}
```