-
Notifications
You must be signed in to change notification settings - Fork 43
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
How to use auth? #20
Comments
I must be missing something simple, just not sure what or where.
|
I would suggest disabling authentication on your device. Unfortunately, the Hilink devices that I have work just fine with this package. I'm happy to accept a PR that fixes this issue, but since the device I'm using is different than what you're likely using, I'm not sure I can directly help. |
I've same problem: my E8372 (I have before an E3531 3G, but now no 3G network more available, only 4g here) has the login (admin:admin) but isn't option to disabling from the web configuration. Is possible only to change password, but no empty. I need the hlcli to active automatically with a script and send SSM from a linux server. opts := []hilink.ClientOption{ but same "unauthorized" issue. Another file to edit/fill to have the correct login? |
I wonder if someone could perhaps point me in the right direction? I seem to be stumbling around in circles. Essentially, trying to use auth - 'WithAuth' I believe.
Running (suspect documentation is out of date, since the old knq repo was archived):
go get -u github.com/knq/hilink
Produces:
So I change to:
go get -u github.com/kenshaw/hilink
Then, in:
~/go/pkg/mod/github.com/kenshaw/[email protected]/cmd/hlcli
Edit main.go change:
To:
Run 'go build' in the above directory... seems to build ok...
If I run the binary, I don't see any 'POST' to attempt to log the user in:
Within client.go it mentions:
... so is it being ignored, because it thinks the id is an empty string?
The text was updated successfully, but these errors were encountered: