go9p icon indicating copy to clipboard operation
go9p copied to clipboard

Examples for PlaunAuth

Open svanichkin opened this issue 1 year ago • 1 comments

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.

svanichkin avatar May 02 '23 05:05 svanichkin

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.

knusbaum avatar Aug 04 '23 13:08 knusbaum