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

is Aurora OS port possible? #1315

Open
cypa opened this issue Dec 27, 2024 · 4 comments
Open

is Aurora OS port possible? #1315

cypa opened this issue Dec 27, 2024 · 4 comments

Comments

@cypa
Copy link

cypa commented Dec 27, 2024

Aurora OS is the Sailfish OS fork with flutter support. See https://auroraos.ru
We have compiled adapted code and tested it on Aurora OS smartphone, see picture.

now it

  • plays anonymous games well
  • authorizes well
  • but fails to start any authorized game so I guess we need some token, do we?

photo_2024-12-27_21-37-35

@Boubou78000
Copy link

Is it normal that the font is different?

@cypa
Copy link
Author

cypa commented Dec 27, 2024

I don't know, first thing to make it play authorized games, font is next thing.

@Boubou78000
Copy link

Boubou78000 commented Dec 27, 2024

I guess we need some token, do we?

When you connect to an account, it generates a token via OAuth2 that is used as the "Authorization" header for all the requests of lib/src/network/http.dart (correct me of I'm wrong)

@TimoshN
Copy link

TimoshN commented Dec 27, 2024

Hi! Token received via oauth2 api but header also use some password

final hmacSha1 = Hmac(sha1, utf8.encode(kLichessWSSecret));
for mobile scope

if i remove digest part from

final digest = hmacSha1.convert(utf8.encode(token));
and change token scopes, i am able to use api.

Also i have issue with websocket server. Server ignore following_onlines request in wss://socket.lichess.org/socket/v5 but response to ping messages. Authenticated user unable to play with bots/ppl but able to play as anonymous.

When authenticated user start to play with bot for example socket fail to upgrade

WebSocket connection failed: WebSocketException: Connection to 'https://socket.lichess.org:0/play/4NGuBPiX1zVo/v6#' was not upgraded to websocket

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

3 participants