From 6ae3c4c7868664c00a614eaee940a57bfa0fbf32 Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Mon, 7 Jan 2019 17:16:41 +0000 Subject: [PATCH] Don't offer XBox, PSN or Steam options to authenticate --- README.md | 2 ++ companion.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c1defa08..8275de19 100644 --- a/README.md +++ b/README.md @@ -132,6 +132,8 @@ The authentication didn't complete correctly for some reason. This can be caused Frontier's authentication website sometimes gets overloaded and displays this error. Please try again later. ### Error: User not found +Your Steam account may not be linked to your Frontier account (you can check whether you have any external accounts linked on the [Frontier store](https://www.frontierstore.net/frontier_partnerkeys/)). + Please enter your Frontier credentials into the authentication website, not your Steam credentials. ### Doesn't auto-update and/or persistently gives “Server is lagging” error diff --git a/companion.py b/companion.py index 2f18ca47..5da9eb3e 100644 --- a/companion.py +++ b/companion.py @@ -191,7 +191,7 @@ class Auth: self.verifier = self.base64URLEncode(os.urandom(32)) self.state = self.base64URLEncode(os.urandom(8)) # Won't work under IE <= 10 : https://blogs.msdn.microsoft.com/ieinternals/2011/07/13/understanding-protocols/ - webbrowser.open('%s%s?response_type=code&approval_prompt=auto&client_id=%s&code_challenge=%s&code_challenge_method=S256&state=%s&redirect_uri=edmc://auth' % (SERVER_AUTH, URL_AUTH, CLIENT_ID, self.base64URLEncode(hashlib.sha256(self.verifier).digest()), self.state)) + webbrowser.open('%s%s?response_type=code&audience=frontier&client_id=%s&code_challenge=%s&code_challenge_method=S256&state=%s&redirect_uri=edmc://auth' % (SERVER_AUTH, URL_AUTH, CLIENT_ID, self.base64URLEncode(hashlib.sha256(self.verifier).digest()), self.state)) def authorize(self, payload): # Handle OAuth authorization code callback. Returns access token if successful, otherwise raises CredentialsError