simon-weber/gpsoauth

I need advice on C# port

Opened this issue · 3 comments

I tried all C# ports, all of them are from 2015, 2016 or 2017:

https://www.nuget.org/packages/GPSOAuthSharp
https://github.com/vemacs/GPSOAuthSharp

https://www.nuget.org/packages/GPSOAuthSharp.NetStandard1
https://github.com/AeonLucid/GPSOAuthSharp.NetStandard1

https://www.nuget.org/packages/GPSOAuthSharp.Portable
https://github.com/Nimgoble/GPSOAuthSharp

https://www.nuget.org/packages/GPSOAuthSharp.NetCore
https://github.com/Davidblkx/GPSOAuthSharp.NetCore

https://www.nuget.org/packages/GPSOAuthSharpNetCore
https://github.com/cormaltes/GPSOAuthSharp

All of them return: {"Error": "BadAuthentication"}

I am writing my own C# port:

https://github.com/Jinjinov/GPSOAuth.Net

I started from https://github.com/vemacs/GPSOAuthSharp and I applied all the changes you made since then, but I still get {"Error": "BadAuthentication"}

Any advice on how I should solve this?

Should I install Python and compare the REST packages?

EDIT: after installing Python I get: module 'urllib3.util.ssl_' has no attribute 'DEFAULT_CIPHERS'

If the http requests match my guess is it's due to tls settings, like what's mentioned in #48 (comment). There's no known fix.

I can't even compare Python and C# because I get module 'urllib3.util.ssl_' has no attribute 'DEFAULT_CIPHERS' in Python.

How can I get Python version working? Downgrade some module? Use Linux instead of Windows? Use another PC?

And even if I don't get the Python version working - what would help me fix the C# version? Install an Android emulator and HTTP toolkit like here: https://httptoolkit.com/blog/inspect-any-android-apps-http/ ? any other idea?

It took me 2 weeks to port https://github.com/kiwiz/gkeepapi to https://github.com/Jinjinov/GKeepApi.Net so I really want to port https://github.com/simon-weber/gpsoauth to https://github.com/Jinjinov/GPSOAuth.Net to make it all work.

The default ciphers issue is fixed in master; see #52 and #51.

If you want to work on the badauth error there's more details in #48 (comment).