Petra,
I have been contending with similar with the simulator at
fhir.epic.com and what I did to resolve this is the following:
1. In your app registration check "Require Refresh Tokens" ... I needed this because I wanted to possibly use refresh tokens and its part of the means of generating a client-secret for you application.
2. Click the "Generate Secret" button which will populate a secret (which for
fhir.epic.com appears to be a base64 encoded JWT token)
3. Copy this secret and use this during your apps "token" POST request.
4. Click the "Store Hash" button to store this secret associated to your app registration.
5. Check the "I accept the terms and conditions of open.epic." check-box
6. Click the "Save & Ready for Sandbox" button
7. HERE IS THE MOST IMPORTANT PART.... wait some time... this is very unfortunate but many of Epics app registration mods are not made in real-time but populate over time (they refer to this as synching) ... I waited a couple of days but possibly it is less.
Hope this helps!
Dave