)]}'
{"scripts/federated-login.sh":[{"author":{"_account_id":6714,"name":"Christopher H. Laco","email":"chris.laco@rackspace.com","username":"chrislaco"},"change_message_id":"6e3e309037b4a8619fc4e7593114fd14e5496ee7","unresolved":false,"context_lines":[{"line_number":70,"context_line":"# obtain a token from the identity provider"},{"line_number":71,"context_line":"IDP_TOKEN\u003d`openstack token issue -f value -c id`"},{"line_number":72,"context_line":"if [ \"$?\" !\u003d \"0\" ]; then"},{"line_number":73,"context_line":"    echo \"Coult not obtain IDP token. (Did you forget to import your openrc file?)\""},{"line_number":74,"context_line":"    exit 1"},{"line_number":75,"context_line":"fi"},{"line_number":76,"context_line":"echo - Obtained IdP token."}],"source_content_type":"text/x-sh","patch_set":1,"id":"3a50d1a3_5dc97777","line":73,"updated":"2015-07-20 23:25:49.000000000","message":"s/Coult/Could/","commit_id":"a0d9a8226b93673caa06c583215ab0c0cdc9dc7f"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"e84659a87e4398f69ca539fbd81ac3058667a25e","unresolved":false,"context_lines":[{"line_number":91,"context_line":"# request a SAML2 assertion from the identity provider"},{"line_number":92,"context_line":"curl -s -X POST -H \"X-Auth-Token: $IDP_TOKEN\" -H \"Content-Type: application/json\" -d \u0027{\"auth\": {\"scope\": {\"service_provider\": {\"id\": \"\u0027\"$SP_ID\"\u0027\"}}, \"identity\": {\"token\": {\"id\":\"\u0027\"$IDP_TOKEN\"\u0027\"}, \"methods\": [\"token\"]}}}\u0027 $OS_AUTH_URL/auth/OS-FEDERATION/saml2/ecp \u003e assertion.xml 2\u003eerror.log"},{"line_number":93,"context_line":"if [ \"$?\" !\u003d \"0\" ] || grep -q error assertion.xml; then"},{"line_number":94,"context_line":"    echo Coult not obtain SAML2 assertion. See assertion.xml and error.log for details."},{"line_number":95,"context_line":"    exit 1"},{"line_number":96,"context_line":"fi"},{"line_number":97,"context_line":"echo - Obtained SAML2 assertion from IdP."}],"source_content_type":"text/x-sh","patch_set":3,"id":"3a50d1a3_165b5ef7","line":94,"updated":"2015-07-22 17:04:09.000000000","message":"nit: s/Coult/Could/\u0027","commit_id":"58fc2a13bf94312751b50dedac9f1b4e8dd0aa4e"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"e84659a87e4398f69ca539fbd81ac3058667a25e","unresolved":false,"context_lines":[{"line_number":110,"context_line":"    echo Could not obtain unscoped token from service provider. See unscoped.txt and error.log for details."},{"line_number":111,"context_line":"    exit 1"},{"line_number":112,"context_line":"fi"},{"line_number":113,"context_line":"UNSCOPED_TOKEN\u003d`grep X-Subject-Token unscoped.txt | grep -Po \u0027: .*\u0027 | grep -Po \u0027[a-zA-Z0-9-_]*\u0027`"},{"line_number":114,"context_line":"echo - Obtained unscoped token from SP: $UNSCOPED_TOKEN"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"echo \u0027- Domains available at sp: \u0027"}],"source_content_type":"text/x-sh","patch_set":3,"id":"3a50d1a3_76e50236","line":113,"updated":"2015-07-22 17:04:09.000000000","message":"nit: Optimise like line 134","commit_id":"58fc2a13bf94312751b50dedac9f1b4e8dd0aa4e"}]}
