Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.89 KB

authorization_code.md

File metadata and controls

27 lines (22 loc) · 1.89 KB

Authenticating by Authorization Code

Please keep in mind that authenticating with authorization code only works on client that have a redirect URL configured.
If you want to get an access token for a client that doesn't have a redirect URL configured, use this method with client fortnitePCGameClient and then use exchange code authentication to get another access token for the new client.

Method

If done successfully, you should now have an access token that you can use to access Epic's services!

Example

Here's what the final HTTP request should look like when you have generated an authorization code - for this example, I am authenticating with fortnitePCGameClient:

POST https://account-public-service-prod.ol.epicgames.com/account/api/oauth/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Authorization: basic ZWM2ODRiOGM2ODdmNDc5ZmFkZWEzY2IyYWQ4M2Y1YzY6ZTFmMzFjMjExZjI4NDEzMTg2MjYyZDM3YTEzZmM4NGQ=

grant_type=authorization_code&code=(code from before)