-
Notifications
You must be signed in to change notification settings - Fork 25
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
sparko help fix #2
Conversation
t/ru.go
Outdated
@@ -341,7 +341,7 @@ ssh -p{{.SSHPort}} {{.SSHUser}}@{{.IP}}</pre>{{end}} | |||
IP: <code>{{.IP}}</code> | |||
{{if .UserPort }}App порт: <code>{{.UserPort}}</code> | |||
{{end}}{{if .SSHPort}}SSH: <code>ssh -p{{.SSHPort}} {{.SSHUser}}@{{.IP}}</code> | |||
{{end}}{{with .Sparko}}<a href="{{.}}">Sparko</a>: <code>curl -X POST {{.}}/rpc -d '{"method": "getinfo"}' -H 'X-Access: grabyourkeyinside'</code> | |||
{{end}}{{with .Sparko}}<a href="{{.}}">Sparko</a>: <code>curl -k -u user:password -X POST {{.}}/rpc -d '{"method": "getinfo"}' -H 'X-Access: grabyourkeyinside'</code> |
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.
Sparko requires either the key or the username/password. Supplying both isn't necessary.
Also I want to discourage people from using username/password in API calls, reserve that for the wallet interface.
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.
Sparko requires either the key or the username/password. Supplying both isn't necessary.
I will check it again but id didn't work without authentication.
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.
Confirm, without -u
id doesn't work and shows
< HTTP/1.1 401 Unauthorized
With -u
it works without masterkey.
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.
Are you sure you're using the correct key?
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.
Now I can say, I tried them all.
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.
Also, if i try to request Sparko locally 0.0.0.0
it also shows 401 error.
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.
@fiatjaf ok. I removed -u
and left only -k
. Maybe I'm wrong but until Blazh will resolve issues with certificates, this option makes sense.
No description provided.