-
Notifications
You must be signed in to change notification settings - Fork 28
Add support for Microsoft accounts #24
Comments
There was a code on how to login in a Microsoft account at samczsun/Skype4J#128 , but the message was deleted (and the user account doesn't exist anymore) Maybe @Manevolent still has his fix for Skype4J? |
I think I know how to do this, the process is detailed here: https://github.com/msndevs/protocol-docs/wiki/Authentication#microsoft-accounts |
I do! https://gist.github.com/Manevolent/1c6bc379c10c1e50358e8f2e2356fef7 That's what I've been using since the mentioned ticket, I made some minor changes to the original poster's source but this has been working fine for me.
The changes I made just sanitize the XML email/password, and acknowledge the "skypeId" returned in my code block above, which is very important if you're using a migrated (skypename -> email) account, which I have been using. I've been having some issues with the auth sticking, though, and sometimes my bot will randomly log out and stay that way until I address it. Until I figure that out, I'll probably wait to make a pull request. Also, maven deps:
Also, JSoup is used, too. |
@Manevolent since we are 4 months later, were you able to resolve your auth issues? A pull request would still come in handy 💩 |
I think this should be put in higher priority, as all skype account are forced to link with Microsoft now... |
May be it can help: |
@Manevolent I get this: |
Exception in thread "main" java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 1 |
Can anyone please help me out on this? |
Simply removing the line from the gist seems to work... |
@Erezbiox1 any chance you got a fork of this with the fix applied for logging in with email and password or provide a short guide on how to get this working? Thank you! |
Hello, I will look into this this week. Sorry for the long delay. To be honest I wasn't sure if anyone needed this at all. |
@metasonic Yes, here's the gist, |
@Erezbiox1 Thanks a lot for that, integrated it locally with Skype4J, tested it and it works, but having issues using the packaged Skype4J in another project. After adding the class to the project made the following change to SkypeBuilder
|
@delthas the framework you buit is the perfect plug and play not stress that you need for Skype, so, I for one love it and would like to see it grow |
Hello. Good news! I have added support for Microsoft accounts to JavaSkype. There are no API changes besides the fact that logging with a Microsoft account (e.g. [email protected]) should work. Please update to version 1.0.22 (I have copied the
|
@delthas thanks for tackling this issue in such a speedy fashion now :). There still seems to be a problem when using a Skype account that has been linked to a Microsoft account (as is the case for me). I can provide two debug logs (one for Skype login, one for Microsoft Account login) and would be quite willing to help resolve this -- kindly contact me via e-mail. |
@delthas thanks a lot for this! |
After doing the following steps skype.connect(); remains stuck
Debug logs |
Some users would like to use this library with Microsoft accounts (#23), maybe add that in the future.
The text was updated successfully, but these errors were encountered: