Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

2.4 KB
Raw Blame
# Schema: StorageWriteModel
---
type: object
properties:
  name:
    type: string
    description: Storage name, if not provided, falls back to a default.
  storageAudience:
    type: string
    description: |-
      The audience that the storage expects in tokens for requests to it,
      usually the storage's client ID at the identity provider.

      This is only required for authentication through single-sign-on and so far
      only supported for provider type Nextcloud.
  tokenExchangeScope:
    type: string
    description: |-
      The scope that will be requested when requesting a token for the storage through token exchange. Has no effect if no
      token exchange is performed.

      This is only required for authentication through single-sign-on and so far only supported for provider type Nextcloud.
  applicationPassword:
    type:
      - string
      - 'null'
    description: |-
      The application password to use for the Nextcloud storage. Ignored if the provider type is not Nextcloud.

      If a string is provided, the password is set and automatic management is enabled for the storage.
      If null is provided, the password is unset and automatic management is disabled for the storage.
  _links:
    type: object
    required:
      - origin
      - type
    properties:
      origin:
        allOf:
          - $ref: './link.yml'
          - description: |-
              The storage's host URL.

              **Resource**: N/A
      type:
        allOf:
          - $ref: './link.yml'
          - description: |-
              The urn of the storage type. Currently Nextcloud and OneDrive storages are supported.

              - urn:openproject-org:api:v3:storages:Nextcloud
              - urn:openproject-org:api:v3:storages:OneDrive

              **Resource**: N/A
      authenticationMethod:
        allOf:
          - $ref: './link.yml'
          - description: |-
              The urn of the authentication method. Currently only Nextcloud storages support this setting.

              - urn:openproject-org:api:v3:storages:authenticationMethod:TwoWayOAuth2 (default)
              - urn:openproject-org:api:v3:storages:authenticationMethod:OAuth2SSO

              **Resource**: N/A

example:
  name: Coruscant
  applicationPassword: 'qJ_VLNReW@sd-Edz2hyC'
  _links:
    origin:
      href: https://nextcloud.deathstar.rocks
    type:
      href: urn:openproject-org:api:v3:storages:Nextcloud