Created
May 13, 2019 18:04
-
-
Save jjo/0eee6e5e872a2ede057953496686cdba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jjo@sapito:~/coro/clases-devops/c01/p01/api_jwt$ docker-compose up | |
Starting api_jwt_init_1 ... done | |
Starting api_jwt_main_1 ... done | |
Starting api_jwt_test_1 ... done | |
Attaching to api_jwt_init_1, api_jwt_main_1, api_jwt_test_1 | |
init_1 | fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz | |
test_1 | fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz | |
init_1 | fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz | |
main_1 | Server started at 3001 | |
init_1 | v3.8.4-63-g0ce51efa7e [http://dl-cdn.alpinelinux.org/alpine/v3.8/main] | |
init_1 | v3.8.4-59-g8c6a743662 [http://dl-cdn.alpinelinux.org/alpine/v3.8/community] | |
init_1 | OK: 9559 distinct packages available | |
init_1 | OK: 13 MiB in 18 packages | |
test_1 | fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz | |
test_1 | v3.8.4-63-g0ce51efa7e [http://dl-cdn.alpinelinux.org/alpine/v3.8/main] | |
test_1 | v3.8.4-59-g8c6a743662 [http://dl-cdn.alpinelinux.org/alpine/v3.8/community] | |
test_1 | OK: 9559 distinct packages available | |
test_1 | OK: 6 MiB in 18 packages | |
test_1 | * Trying 127.0.0.1... | |
test_1 | * TCP_NODELAY set | |
test_1 | * Connected to localhost (127.0.0.1) port 3001 (#0) | |
test_1 | * Server auth using Basic with user 'testuser' | |
test_1 | > GET /auth HTTP/1.1 | |
test_1 | > Host: localhost:3001 | |
test_1 | > Authorization: Basic dGVzdHVzZXI6c3VwZXJzZWNyZXQ= | |
test_1 | > User-Agent: curl/7.61.1 | |
test_1 | > Accept: */* | |
test_1 | > | |
test_1 | < HTTP/1.1 200 OK | |
test_1 | < Date: Mon, 13 May 2019 18:03:45 GMT | |
test_1 | < Content-Length: 212 | |
test_1 | < Content-Type: text/plain; charset=utf-8 | |
test_1 | < | |
test_1 | { [212 bytes data] | |
main_1 | DEBUG: JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1NTc3NzA4MDUsInVzZXJfaWQiOiJ0ZXN0dXNlciJ9.fL62-OcsVVIsnqgqA4jXzz6N2sENBc1_zivOT2V6BH0 | |
main_1 | Claim: "user_id": testuser | |
test_1 | * Connection #0 to host localhost left intact | |
test_1 | + curl -H 'Authorization: BEARER eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1NTc3NzA4MDUsInVzZXJfaWQiOiJ0ZXN0dXNlciJ9.fL62-OcsVVIsnqgqA4jXzz6N2sENBc1_zivOT2V6BH0' -sv http://localhost:3001/admin | |
test_1 | JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1NTc3NzA4MDUsInVzZXJfaWQiOiJ0ZXN0dXNlciJ9.fL62-OcsVVIsnqgqA4jXzz6N2sENBc1_zivOT2V6BH0 | |
test_1 | * Trying 127.0.0.1... | |
test_1 | * TCP_NODELAY set | |
test_1 | * Connected to localhost (127.0.0.1) port 3001 (#0) | |
test_1 | > GET /admin HTTP/1.1 | |
test_1 | > Host: localhost:3001 | |
test_1 | > User-Agent: curl/7.61.1 | |
test_1 | > Accept: */* | |
test_1 | > Authorization: BEARER eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1NTc3NzA4MDUsInVzZXJfaWQiOiJ0ZXN0dXNlciJ9.fL62-OcsVVIsnqgqA4jXzz6N2sENBc1_zivOT2V6BH0 | |
test_1 | > | |
test_1 | Protected area. Welcome: testuser | |
test_1 | Your Token expires at: 2019-05-13 18:06:45 +0000 UTC | |
test_1 | < HTTP/1.1 200 OK | |
test_1 | < Date: Mon, 13 May 2019 18:03:45 GMT | |
test_1 | < Content-Length: 87 | |
test_1 | < Content-Type: text/plain; charset=utf-8 | |
test_1 | < | |
test_1 | { [87 bytes data] | |
test_1 | * Connection #0 to host localhost left intact | |
api_jwt_test_1 exited with code 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment