# Feature OP-13005 - Nudge admin to go through OAuth flow

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-13005

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 13.3.0 |
| Sprint | 13.3.0 |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| OP-14273 | Add intermediate waiting state to cover case when redirect to provider takes time | Feature | closed |  | 13.4.0 |  |

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| OP-14294 | Task | Do not render oauth access grant modal when the project storage is no longer exists | closed |  | 13.3.0 |  |  |

## Technical Details

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

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee | Kabiru Mwenja |
| Accountable | Dominic Bräunlein |
| Product manager |  |
| Developers | OP Dev Titan Team |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** a project administrator  
**I want to** get nudged to pass the OAuth flow once I activate a storage on a project and I don't have a access token for that storage, yet  
**so that** the background job has a chance to setup the project folder for that user and the project admin gets the feedback that everything is setup and working.

**Acceptance criteria**

  - After activating (on create) a storage on project (any mode) the next view has a modal asking politely if the user also wants to pass the OAuth flow.
      - The default button is "yes" -\> will redirect to the OAuth pages of the storage provider and finally end up in the same destination URL
          - The destination URL is the index page of all activated storages of the project Example: <https://qa.openproject-edge.com/projects/test-project-with-jonas/settings/project_storages>
          - If the user grants access successfully then a success state is shown on the modal
          - If there is an error, then a failure state is shown on the modal
          - If the user denies access, then a failure state is shown on the modal
          - If the user waits too long without granting/declining access- the modal is left in waiting state- no action is taken.
      - On "Not now" the user will directly sent to the destination URL.

**Figma and design**

**Note for QA:** (1) The figma files have outdated wording. The updated wording can be seen in [this PR](https://github.com/opf/openproject/pull/14738). (2) The intermediate loading state will be handled in the next release in <mention class="mention" data-id="52605" data-type="work_package" data-text="#52605">\#52605</mention> 

After setup modal: <https://www.figma.com/file/gtLQfPe09X7XugAH8L7dTy/File-Storages-Integration?type=design&node-id=7001-23624&mode=design>

Confirmation modal: <https://www.figma.com/file/gtLQfPe09X7XugAH8L7dTy/File-Storages-Integration?type=design&amp;node-id=7115-26059&amp;mode=design&amp;t=m74o1WNSiO3gJ7mn-4>
