1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

Don't offer XBox, PSN or Steam options to authenticate

This commit is contained in:
Jonathan Harris 2019-01-07 17:16:41 +00:00
parent 22c94d0c5c
commit 6ae3c4c786
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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