-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant login Auth Failed #218
Comments
The Yggdrasil authentication is deprecated and no longer supported by Mojang, I'll probably fix this bad error message, but I can't make it work! |
Oh, that's unfortunate, I tried the Microsoft Azure logging method, but I don't know what the following variables should have been request_body, id_token, and thus I don't know how I should set up the azure application just in general there is very little information about the Microsoft login in the docs and combining that with the lack of tutorials for this package is really hard to get into portable MC, but I do really appreciate your work and effort that you put into this project |
Ok so you're using the API, to be honest the MS auth bothers me, you can obtain some information on how to set up the Azure APP on https://wiki.vg/Microsoft_Authentication_Scheme, for PortableMC in particular, I suggest that you read this snippet from the CLI, it shows you which URLs and methods to call in order. |
I am just wondering if you saw this part of the wiki, it's almost everything that you have to use |
This is almost what I'm doing in the API, so you should not need to do that manually. Lines 285 to 347 in eb690c9
|
Traceback (most recent call last):
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 1344, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\http\client.py", line 1336, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\http\client.py", line 1382, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\http\client.py", line 1331, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\http\client.py", line 1091, in _send_output
self.send(msg)
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\http\client.py", line 1035, in send
self.connect()
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\http\client.py", line 1470, in connect
super().connect()
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\http\client.py", line 1001, in connect
self.sock = self._create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\socket.py", line 828, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\socket.py", line 963, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\site-packages\portablemc\http.py", line 96, in http_request
res: HTTPResponse = urllib.request.urlopen(req, context=ctx)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 215, in urlopen
return opener.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 515, in open
response = self._open(req, data)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 532, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 492, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 1392, in https_open
return self.do_open(http.client.HTTPSConnection, req,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 1347, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 11001] getaddrinfo failed>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\site-packages\portablemc\auth.py", line 164, in request
res = http_request("POST", f"https://authserver.mojang.com/{req}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\site-packages\portablemc\http.py", line 103, in http_request
raise HttpError(HttpResponse(None), method, url, error)
portablemc.http.HttpError: (<HttpResponse 0>, 'POST', 'https://authserver.mojang.com/authenticate', URLError(gaierror(11001, 'getaddrinfo failed')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "i:\Meine Ablage\projekts\VistaLauncher\builds\Vista\test.py", line 15, in
version.auth_session = YggdrasilAuthSession.authenticate(client_id, email, password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\site-packages\portablemc\auth.py", line 144, in authenticate
_, res = cls.request("authenticate", {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\benno\AppData\Local\Programs\Python\Python312\Lib\site-packages\portablemc\auth.py", line 175, in request
raise AuthError(error.res.json()["errorMessage"])
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
The text was updated successfully, but these errors were encountered: