# Bug OP-14314 - Add meaningful flash error message when user cancels OAuth flow on OneDrive/SharePoint

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.0.0 |
| Observed in versions | 13.4.0 |
| Sprint | 14.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.4.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

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

## Description

### Steps to reproduce

  

1\. Click on Project settings from the sidebar

2\. Navigate to File storages

3\. Add FINN Documents on a non-automatically managed mode

4\. When the modal pops up, click on &quot;Login&quot;

5\. When permissions are requested, click on &quot;Cancel&quot;

<img class="op-uc-image op-uc-image_inline" style="width:205px;" src="https://community.openproject.org/api/v3/attachments/91932/content">

6\. I get redirected to the administration page where a File storage is configured instead of the modal displaying an error as the acceptance criteria states.

<figure class="image op-uc-figure" style="width:500px;"><div class="op-uc-figure--content"><img class="op-uc-image" src="https://community.openproject.org/api/v3/attachments/91933/content"></div></figure>

### What is the buggy behavior?

The error message suggests that this use case is not handled in the backend and a unexpected error happened.

### What is the expected behavior?

The message should be meaningful for the user. e.g. &quot;Authentication unsuccessful&quot;

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" style="width:500px;" src="https://community.openproject.org/api/v3/attachments/91933/content">

###
