Skip to content
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

Add scope adherence #76

Merged
merged 6 commits into from Feb 14, 2024
Merged

Add scope adherence #76

merged 6 commits into from Feb 14, 2024

Conversation

akirk
Copy link
Owner

@akirk akirk commented Feb 14, 2024

When authorizing an app, we now display the requested scopes on the login screen:
Screenshot 2024-02-14 at 14 40 16

Subscopes are displayed like this:

Screenshot 2024-02-14 at 14 40 46

The scopes are now also enforced: If an app then tried to request an api endpoint where it doesn't have permission, and api based error will be returned, for example (screenshot from the Mastodon API Tester):

Screenshot 2024-02-14 at 14 12 06

Thanks @ThisIsMissEm for pointing out this missing part of the plugin!

@akirk akirk requested a review from pfefferle February 14, 2024 13:56
Copy link
Collaborator

@pfefferle pfefferle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akirk akirk merged commit dfb6e36 into main Feb 14, 2024
38 checks passed
@akirk akirk deleted the add-scope-adherence branch February 14, 2024 15:36
@ThisIsMissEm
Copy link

Nice work @akirk ! Had a skim through the code, but I'll leave that to the wordpress experts (not a flavour of php I'm used to)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants