Skip to main content

A helper library to authenticate with connect.linux.do and retrieve auth.session-token

Project description

Linux Do Connect Token

A helper library to authenticate with connect.linux.do and retrieve auth.session-token


GitHub release

Python CI Release CodeQL Advanced


Usage

See example


Get the _t Cookie

  1. Open InPrivate page(Because token refresh)
  2. Log in to linux.do
  3. Open DevTools by pressing F12
  4. Go to the Application tab
  5. Expand Cookies in the left sidebar and select linux.do
  6. Find the _t cookie in the list
  7. Copy its value for later use
  8. Close InPrivate page(Dont logout linux.do)

请自行维护 Token 的生命周期。当 get_auth_token 返回的第二个参数不为 None 时,表示 Token 已刷新,请及时更新保存的 Token 值。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

linux_do_connect_token-0.0.2b1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

linux_do_connect_token-0.0.2b1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file linux_do_connect_token-0.0.2b1.tar.gz.

File metadata

  • Download URL: linux_do_connect_token-0.0.2b1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.2 Linux/6.11.0-1018-azure

File hashes

Hashes for linux_do_connect_token-0.0.2b1.tar.gz
Algorithm Hash digest
SHA256 888c0ec6a614d5f352d0b8fbae15d81d503c470bc4667e371be7551369aa0398
MD5 addc4ba768780031b8e51bf93ee66076
BLAKE2b-256 abf68a8066700ff1a8414df7608112ee94f2fc99c4ad0469e68a3a9cc94fd69e

See more details on using hashes here.

File details

Details for the file linux_do_connect_token-0.0.2b1-py3-none-any.whl.

File metadata

File hashes

Hashes for linux_do_connect_token-0.0.2b1-py3-none-any.whl
Algorithm Hash digest
SHA256 42724d3b71321671480843c77c7da4aac40d7186c37569a4ec193709b603bc1d
MD5 226693309c27e2514bdb4a61d23046f7
BLAKE2b-256 9a36e7c71e0503e07f430cfad9715e80348bcd17c69f718245bf15e2fe84cfbf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page