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

Example #82

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft

Example #82

wants to merge 11 commits into from

Conversation

nichoth
Copy link
Contributor

@nichoth nichoth commented Mar 6, 2022

Add an example to the readme that demonstrates connecting two secret-stack instances.

TODO
How to incorporate permissions? If you run the example.js file, it results in an error

  message: 'method:myPlugin,foo is not in list of allowed methods',

However, if you include these permission in the plugin, then it works

        permissions: {
            anonymous: { allow: ['foo', 'bar'], deny: [] }
        },

What is a good example for a permissions object? Something that permits things based on who is making a request, not just anonymous.

I assume that part of the purpose of secret-stack and shs is authenticating each end of the peer connection, so that you can be sure the caller has a specific public ID.

@nichoth nichoth marked this pull request as draft March 6, 2022 21:42
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.

1 participant