-
Notifications
You must be signed in to change notification settings - Fork 0
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 auth package #5
base: master
Are you sure you want to change the base?
Conversation
@mikelsr I think I'm finally starting to pick up speed. Marking as draft until I get passing tests. Expect PRs relating to CI. Would love to get your early feedback :) |
"github.com/libp2p/go-libp2p/core/crypto" | ||
) | ||
|
||
var _ Policy = (*Terminal_login_Results)(nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the unamed variable used for?
// with name "libp2p-peer-record". | ||
var AuthDomain_PayloadType = []byte{0xbb, 0xbb} // TODO: pick better numbers | ||
|
||
var _ record.Record = (*expect)(nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the global unamed variable pattern in more than one file, what is it for? 👀
ww_test.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to remove the file?
…65715-46ccd63a72af to fix e-order violation.
WIP. I'm setting up the backbone for our auth system. Objective is to have a login message flow, that applies a trivial policy (allow all).
At a high level, auth works by bundling the guest process'
(stdout, stdin)
into something called a "socket", and exporting aTerminal
client over a Cap'n Proto RPC connection. The present PR stops short of this full implementation, and only provides theauth
package.Follow-up work: