This page is part of the Smart App Launch Implementation Guide (v1.1.0: STU 2 Ballot 1) based on FHIR R4. The current version which supercedes this version is 2.0.0. For a full list of available versions, see the Directory of published versions
curl -i -s 'http://launch.smarthealthit.org/v/r2/sim/eyJoIjoiMSIsImoiOiIxIn0/auth/token' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Accept: application/json' -H 'Authorization: Basic bXktYXBwOm15LWFwcC1zZWNyZXQtMTIz' --data 'grant_type=refresh_token&refresh_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJjb250ZXh0Ijp7Im5lZWRfcGF0aWVudF9iYW5uZXIiOnRydWUsInNtYXJ0X3N0eWxlX3VybCI6Imh0dHBzOi8vbGF1bmNoLnNtYXJ0aGVhbHRoaXQub3JnL3NtYXJ0LXN0eWxlLmpzb24iLCJwYXRpZW50IjoiNzgzYTFmMDItNWJmOS00MWM5LTkwZDAtYzJjNGQzNWQzZWMzIiwiZW5jb3VudGVyIjoiNDFlMjdiYmYtZTVjMi00MjYxLTlmNjctY2E0Njc2MjczOTU5In0sImNsaWVudF9pZCI6Im15X3dlYl9hcHAiLCJzY29wZSI6Im9wZW5pZCBwcm9maWxlIG9mZmxpbmVfYWNjZXNzIG9ubGluZV9hY2Nlc3MgdXNlci8qLiogcGF0aWVudC8qLiogbGF1bmNoL2VuY291bnRlciBsYXVuY2gvcGF0aWVudCIsInVzZXIiOiJQcmFjdGl0aW9uZXIvU01BUlQtMTIzNCIsImlhdCI6MTUyOTY3NDQ4NywiZXhwIjoxNTI5Njc0Nzg3fQ.lMdNPEWLHNQ9SK2V6CiPhjFdFUFfWxWUaevGkbmhb-Q'
HTTP/1.1 200 OK
Server: Cowboy
Connection: keep-alive
X-Powered-By: Express
Vary: Origin
Access-Control-Allow-Credentials: true
Content-Type: application/json; charset=utf-8
Content-Length: 3950
Etag: W/"f6e-dvRX3sCBJLw1SZSox117r824g3s"
Date: Fri, 22 Jun 2018 13:36:18 GMT
Via: 1.1 vegur
{"need_patient_banner":true,"smart_style_url":"https://launch.smarthealthit.org/smart-style.json","patient":"783a1f02-5bf9-41c9-90d0-c2c4d35d3ec3","encounter":"41e27bbf-e5c2-4261-9f67-ca4676273959","refresh_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJjb250ZXh0Ijp7Im5lZWRfcGF0aWVudF9iYW5uZXIiOnRydWUsInNtYXJ0X3N0eWxlX3VybCI6Imh0dHBzOi8vbGF1bmNoLnNtYXJ0aGVhbHRoaXQub3JnL3NtYXJ0LXN0eWxlLmpzb24iLCJwYXRpZW50IjoiNzgzYTFmMDItNWJmOS00MWM5LTkwZDAtYzJjNGQzNWQzZWMzIiwiZW5jb3VudGVyIjoiNDFlMjdiYmYtZTVjMi00MjYxLTlmNjctY2E0Njc2MjczOTU5In0sImNsaWVudF9pZCI6Im15X3dlYl9hcHAiLCJzY29wZSI6Im9wZW5pZCBwcm9maWxlIG9mZmxpbmVfYWNjZXNzIG9ubGluZV9hY2Nlc3MgdXNlci8qLiogcGF0aWVudC8qLiogbGF1bmNoL2VuY291bnRlciBsYXVuY2gvcGF0aWVudCIsInVzZXIiOiJQcmFjdGl0aW9uZXIvU01BUlQtMTIzNCIsImlhdCI6MTUyOTY3NDQ4NywiZXhwIjoxNTI5Njc0Nzg3fQ.lMdNPEWLHNQ9SK2V6CiPhjFdFUFfWxWUaevGkbmhb-Q","token_type":"bearer","scope":"openid profile offline_access online_access user/*.* patient/*.* launch/encounter launch/patient","expires_in":3600,"id_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJwcm9maWxlIjoiUHJhY3RpdGlvbmVyL1NNQVJULTEyMzQiLCJzdWIiOiI3NmQ1M2ZmNmNjZDY5ZWEyN2YzMjM5MzgwYjMwMzliNGE4NzI5OTJmODE1MWViMzE4Y2UxODZlZDlmMmYzMTNjIiwiaXNzIjoiaHR0cDovL2xhdW5jaC5zbWFydGhlYWx0aGl0Lm9yZyIsImlhdCI6MTUy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