-
Notifications
You must be signed in to change notification settings - Fork 19
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
permissions -- docs and test #79
Comments
See muxrpc, where the permission system comes from. |
Thank you for the pointer, but the var perms = Perms({allow: ['auth']}) And the tests in this repo show permissions: {
anonymous: { allow: ['hello'], deny: null }
}, What shape is the permissions argument to Part of this issue is that the permissions in |
Starting to answer my own questions — |
unraveling the secret-stack The you can see the permissions uses const rpc = Muxrpc(
manifest,
manf ?? manifest,
api,
_id,
isClient
? permissions.anonymous
: isPermissions(stream.auth)
? stream.auth
: permissions.anonymous,
false
) and the |
Hi. I looked at all the tests and I couldn't find an example of permissions that use something aside from
{ anonymous: { allow: [ 'myMethod' ] } }
.How would you set permissions for who can call which method? From what I understand, the purpose of this module is to authenticate rpc connections. What do you learn about the caller after they have connected?
The text was updated successfully, but these errors were encountered: