$ go build server.go
$ ./server
$ curl http://localhost:8080/basic_auth \ -H "accept: application/json" \ -H "Authorization:Basic $(echo -n client_id:client_secret | openssl base64)"
すると、
Successful Basic Authentication が表示される。
a | ||
b |
$ go build server.go
$ ./server
$ curl http://localhost:8080/basic_auth \ -H "accept: application/json" \ -H "Authorization:Basic $(echo -n client_id:client_secret | openssl base64)"
すると、
Successful Basic Authentication が表示される。
a | ||
b |