getsentry / getsentry/sentry-mcp

Scopes do not verify

Open
#24 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
853
Forks
144
Avg merge
19h 25m
Merged PRs (30d)
32

Description

The OAuth flow does not currently provide any verification of scopes.

That is, if we add a new scope we need, say "teams:write", the existing authenticated calls will never implicitly reauthenticate to upgrade scopes other than when they expire.

Typically I would solve this by binding scopes to the token, and then checking if "required scopes" (or similar) match "granted scopes" on any auth call.

This somewhat overlaps with our other oauth concerns, as we need more control over the flow in general.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.