Skip to content

Validate scopes of JWTs #18393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2025
Merged

Validate scopes of JWTs #18393

merged 1 commit into from
Apr 22, 2025

Conversation

NobodysNightmare
Copy link
Contributor

So far we are only accepting JWTs for requests to
APIv3 and our scopes are not more fine-grained than that.

However, warden strategies are generally responsible for validating
the scopes of a token (e.g. compare DoorkeeperOAuth) to the scope
of the currently accessed API.

Ticket

https://community.openproject.org/wp/62360

Merge checklist

  • Added/updated tests

@NobodysNightmare NobodysNightmare marked this pull request as draft March 20, 2025 12:56
@NobodysNightmare
Copy link
Contributor Author

Keeping this PR as a draft until we decided whether we need to temporarily disable this check for APIv3 specifically or not.

So far we are only accepting JWTs for requests to
APIv3 and our scopes are not more fine-grained than that.

However, warden strategies are generally responsible for validating
the scopes of a token (e.g. compare DoorkeeperOAuth) to the scope
of the currently accessed API.
@NobodysNightmare NobodysNightmare requested a review from a team April 17, 2025 08:26
@NobodysNightmare NobodysNightmare marked this pull request as ready for review April 17, 2025 08:26
@NobodysNightmare NobodysNightmare merged commit cdb05c0 into dev Apr 22, 2025
18 of 20 checks passed
@NobodysNightmare NobodysNightmare deleted the validate-scopes branch April 22, 2025 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants