Skip to main content

steam-openid

steam-openid provides a straightforward implementation for integrating Steam OpenID authentication into applications.

Requirements

  • Python 3.6 or higher
  • python3-openid

You can install the required dependencies with:

pip install -r requirements.txt

Example usage

from steam_openid import SteamOpenID

steam = SteamOpenID(
    realm="http://localhost:8080/steam/login",
    return_to="http://localhost:8080/steam/callback"
)


@app.route("/steam/login")
def login():
    redirect_url = steam.get_redirect_url()
    return redirect(redirect_url)


@app.route("/steam/callback")
def callback(request):
    steam_id = steam.validate_results(request.query_params)
    if steam_id:
        return 200, f"Your steam id is: {steam_id}"
    else:
        return 403, "Failed to authenticate"

Contributions

Pull requests are welcome! If you find a bug or have a feature request, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Metadata

Release files for steam-openid 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for steam-openid 1.0.6
File Size Uploaded
steam_openid-1.0.6.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for steam-openid 1.0.6
File Interpreter ABI Platform
steam_openid-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / steam_openid-1.0.6.tar.gz

Download URL steam_openid-1.0.6.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5743f24d182dc3e2b0ca30b5672e47cb803edf007119c4ba84ca359802ab4673
BLAKE2b-256 checksum
How to use checksums
4e3a50e9621233e0f43233c3ee72e0d909ca084591f9a075d3981a961595ca3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / steam_openid-1.0.6-py3-none-any.whl

Download URL steam_openid-1.0.6-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f745402fed89e3d076ebecb83bfd6c95ce84ef2fe99347c2ead48d5009e33281
BLAKE2b-256 checksum
How to use checksums
72a18a886388cc053ce86eec5f9f20a3dc7d38bb271bbd6fbbc46b408f4fe708
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page