# Feature SI-119 - Validate scope of JWTs

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

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 16.0.0 |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_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 |  |
| Feature Lead |  |
| Developers | Jan Sandbrink |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

**As** an administrator  
**I want to** validate the scope of JWTs  
**so that** they can only be used in the context that they were intended to be used for.

**Acceptance criteria**

  - For incoming JWTs, we validate the scope similar to how we do it for access tokens issued by Doorkeeper
    
      - This means incoming JWTs need to carry a scope to be able to access our APIs (e.g. `api_v3` for requests to APIv3)

**QA Notes**

As this is an API change, it's only "Postman testable" (Postman is not a requirement, but making an API request is ;-)).
