I am happy someone responded, thanks! Maybe you can help me out...
When I try and swap out the code for a token it gives me this error back
{
"name":"Error",
"status":400,
"message":"Bad Request",
"context":{
"error":"invalid_client",
"error_description":"A valid client was not found with the credentials provided"
}
}
This only fails when I use the clientId from the app I setup in "MyApp" on epic. The epic launchpad here
https://open.epic.com/Launchpad/OAuth2Ssoworks fine with the code I am running and my code is able to exchange the auth code from epic for a token and I can get data. Am I missing something? I am following the instructions exactly and inspecting the URL before it's sent, it matches the OAuth2 tutorial on epic's website.
My request looks identical to this, with the exception that I have substituted in the correct values for my particular app (clientId etc).
POST https://open-ic.epic.com/argonaut/oauth2/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code&code=QY4IDRFBZOPtYenTOAZK34mSYX%2BCcVOJLj%2BKkTAmMRp4DHYtN6JOp%2FILMjRk1mkl%2Bnllz5yLwixKGs2wwEodUTvEegYMi%2FwKCD9ZiH2MsURO%2FW9yUfuQJW8fDbBrBUTF&redirect_uri=http://localhost:8000&client_id=324C2091A1CB4A319FBB3FC805863F0A
Again, my code only fails to exchange the auth code for the token when I use the clientId from the "app" I created in "MyApp" on epics website. Using the launchpad here https://open.epic.com/Launchpad/OAuth2Sso, my app works fine and I am able to exchange the auth code for a token and request data.
Thanks for any help you can provide!