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

Examples for PlaunAuth #9

Open
svanichkin opened this issue May 2, 2023 · 1 comment
Open

Examples for PlaunAuth #9

svanichkin opened this issue May 2, 2023 · 1 comment

Comments

@svanichkin
Copy link

svanichkin commented May 2, 2023

I tried to collect from examples the server and the client with authentication by password, this example does not work or an additional explanation is required for it.
I created an authentication server from the example:
fs.WithAuth(fs.PlainAuth(map[string]string{"kyle": "foo"}))
As well as an example of an authentication client:
client, err = cl.NewClient(conn, "kyle", "", cl.WithAuth(cl.PlainAuth("foo")))
Log:
2023/05/02 08:43:12 Storing info in C: 0x1400006a050, t.Afid: 1
2023/05/02 08:43:12 READ1
2023/05/02 08:43:12 WRITE1
2023/05/02 08:43:12 WRITE1

Perhaps I am doing something wrong, but I do not find any explanation in the code or documentation.

Additionally, need examples for working with a real file system, as well as an example of work with clone fs.

@knusbaum
Copy link
Owner

knusbaum commented Aug 4, 2023

Hey @svanichkin. Thanks for taking an interest in the project.

Auth is still very much a work in progress as you might be able to tell by the debug logs still in the code (READ1, WRITE1, etc.)

I will try to get to this eventually, but I don't have much spare time these days.

I'd welcome any contributions if you feel like digging in.

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

No branches or pull requests

2 participants