autolab / Autolab-CLI

Command line autolab client that uses the Autolab API
3 stars 2 forks source link

CLI requiring constant reauthentication #28

Closed damianhxy closed 10 months ago

damianhxy commented 1 year ago

Occurring on AWS Autolab.

"The CLI seems to need to be reauthenticated to the server by running "setup" and copying over the code every ~3 wall clock hours."

Exception should be thrown via main > show_courses > get_courses > make_request > raw_request_optional_refresh

Possible root cause is RawClient::perform_token_refresh

Screenshot_20230603_032025_ConnectBot

damianhxy commented 10 months ago

Resolved. This was due to the line added in #29.

The token and refresh_token are 43 characters each (total 87 w/ newline), but by disabling padding when decrypting, 96 characters are read. This leads to an invalid refresh_token being sent to Autolab.