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

Allow Policies to directly be unlocked with a Protector #3

Closed
josephlr opened this issue Jul 12, 2017 · 0 comments
Closed

Allow Policies to directly be unlocked with a Protector #3

josephlr opened this issue Jul 12, 2017 · 0 comments
Assignees

Comments

@josephlr
Copy link
Member

As of right now, Policies can only be unlocked by passing OptionFunc and KeyFunc callbacks. This works in most cases. However, if there are multiple policies protected with the same protector, then the KeyFunc must be called multiple times to unlock them all.

This could be solved by adding an additional unlock method on the Policy struct.

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

No branches or pull requests

1 participant