# Feature NEX-197 - Shell script to setup the integration

Project: Stream Nextcloud app "OpenProject Integration"
Status: closed
URL: https://community.openproject.org/work_packages/NEX-197

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Nextcloud Integration 2.3.0 |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| Work |  |
| Labor costs |  |

## Description

We are now at a point in which we should be able to script the setup of an integration. Would be great to have that ready and also nicely documented. Also, we will know first hand, that the flow is working and will not leave it to test for the first brave people trying the integration.

Expect ENV variables

*   NEXTCLOUD\_HOST
*   OPENPROJECT\_STORAGE\_HOST
*   OPENPROJECT\_STORAGE\_NAME

Assumptions are:

*   OpenProject is setup
*   The credentials of the OpenProject global user are present
*   Nextcloud is setup.
*   The &quot;OpenProject Integration&quot; app is installed.
*   In Nextcloud we already have setup an admin user a know her credentials.

And then the script does:

*   Create a storage in OpenProject, receive OpenProject OAuth credentials (probably acting as global admin)
*   Send those credentials to the new API in the Nextlcoud app, receive Nextcloud OAuth credentials
*   Patch/Update OpenProject storage with Nextcloud OAuth credentials (again as global admin)

Also would be nice to have that script mentioned in the README so that others can find it.
