Skip to content
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

I need advice on C# port #55

Open
Jinjinov opened this issue Jul 27, 2023 · 3 comments
Open

I need advice on C# port #55

Jinjinov opened this issue Jul 27, 2023 · 3 comments

Comments

@Jinjinov
Copy link

Jinjinov commented Jul 27, 2023

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'

@simon-weber
Copy link
Owner

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.

@Jinjinov
Copy link
Author

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.

@simon-weber
Copy link
Owner

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants