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

PermissionController 2.0 #132

Merged
merged 25 commits into from
Nov 23, 2021
Merged

PermissionController 2.0 #132

merged 25 commits into from
Nov 23, 2021

Conversation

rekmarks
Copy link
Member

The permission system 2.0. See the README for details, and this PR on metamask-extension for what actually using it looks like.

Ref: MetaMask/rpc-cap#133

Supersedes #28

@rekmarks rekmarks force-pushed the permissions-controller-v2-PR2 branch from 814429d to cd37424 Compare November 17, 2021 03:50
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

These tests are fantastic! I've just finished reviewing everything. Ready to approve when all outstanding comments have been addressed.

Gudahtt
Gudahtt previously approved these changes Nov 23, 2021
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

@rekmarks rekmarks merged commit 76b6b0d into main Nov 23, 2021
@rekmarks rekmarks deleted the permissions-controller-v2-PR2 branch November 23, 2021 23:53
rekmarks added a commit that referenced this pull request Dec 8, 2021
Following #132, restricted methods can no longer be bound to the requesting origin. Instead, they receive a single object parameter with an object property `context`, which in turn has a string property `origin` that identifies the the subject that made the request.

This PR ensures that all restricted method hooks use `context.origin` where necessary instead of assuming that they are bound to the requesting origin.
rekmarks added a commit that referenced this pull request Dec 10, 2021
Following #132, restricted methods can no longer be bound to the requesting origin. Instead, they receive a single object parameter with an object property `context`, which in turn has a string property `origin` that identifies the the subject that made the request.

This PR ensures that all restricted method hooks use `context.origin` where necessary instead of assuming that they are bound to the requesting origin.
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

2 participants