akarei
June 10, 2022, 9:34am
21
Seems that it doesn’t work anymore?
curl --header "Content-Type: application/json" \
--data '{"access_grant": "my_grant", "public": true}' \
-v https://auth.eu1.storjshare.io
I got HTTP/2 404
response.
I checked the source code of uplink-cli
, there is a registerAccess method, which is actually calling the edge mod of uplink
repo, but this one uses gRPC call under the hood, not HTTP API.
Is this the only way now?
artur
June 10, 2022, 10:10am
22
Hi @akarei ! I’m sorry; the previous message does not contain the necessary path hence 404.
Here’s the correct way:
$ curl --header "Content-Type: application/json" --data '{"access_grant": "my_grant", "public": true}' -v https://auth.eu1.storjshare.io/v1/access
Auth Service is reachable via HTTP(S) and RPC(S), but with uplink CLI, it’s only possible to register with a DRPCS call.
I wrote down all methods I use to register:
README.md
# HTTP(S)
## Example with cURL
```console
$ curl \
--header "Content-Type: application/json" \
--data '{"access_grant": "1uW6DdRk8aQ1CAK8H7K34BePSgSNFCy9vsZZgNmGrZBoqLrZS5Lu1pxaoDgyCF4NCY6KdiGyCyfAoNbxYoXMh9wWP6HgxkuQ1PCvC25DvoXjwaAkUqRXtFPhCb4hr5cTrLYLJnqcfKVEmXX6UeXXoBsQoktzXjYLjadzHX58XUWEpcZioqMqFGCUqnyzgRTTRZB2anQpADv1FCpuvombxZxzxTdd8HWEcRXmUAwVsNxavBHeLL7ymZMXihMb4FVrYvwUegmWXEg47f1x", "public": true}' \
-v https://auth.eu1.storjshare.io/v1/access
```
This file has been truncated. show original
I hope it’s useful!
2 Likes
akarei
June 10, 2022, 10:44am
23
It works! Thank you for your detailed explanation!
1 Like