# Bug SI-162 - Access tokens of disabled OAuth applications are accepted by API

Project: Stream Integration Basics
Status: closed
URL: https://community.openproject.org/work_packages/SI-162

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Authentication |
| Target versions | 16.1.0 |
| Observed in versions | 16.0.0 |
| Bug found in version (deprecated) | 16.0.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Disable "OpenProject Mobile App" in list of OAuth applications (`/admin/oauth/applications`)

2.  Use mobile app to access restricted resource in OpenProject

### What is the buggy behavior?

The mobile app is still able to access restricted resources or create work package (in general: make API calls).

### What is the expected behavior?

It should not be possible to perform restricted actions with the mobile app, when it has been disabled in admin settings.

*Note: I have **no expectation on unrestricted resources**. While it's technically possible to request them without an access token, it's possible that accessing them also fails, if the app always tries to use an access token.*

### 

### 

### Environment information

**OpenProject installation type**

  - community

**OpenProject version**

*16.0.0*
