Skip to main content

A simple package for integrating Steam OpenID authentication in applications.

Project description

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.

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

steam_openid-1.0.3.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

steam_openid-1.0.3-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file steam_openid-1.0.3.tar.gz.

File metadata

  • Download URL: steam_openid-1.0.3.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for steam_openid-1.0.3.tar.gz
Algorithm Hash digest
SHA256 59aba94971d91cfe2e6fb502d4642fd9b3f79d2fe395b9b7c6cc88994f9a671f
MD5 f0e1bf9dac9e51fad03aa593b36f1ac7
BLAKE2b-256 396ad51be13fb82d6cbeea44a1d86d364a531a2d3e79035eb62d224d922a5774

See more details on using hashes here.

File details

Details for the file steam_openid-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: steam_openid-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for steam_openid-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9ccc4adc1b0a88d0aa12a115e0fb9d1bc322052af4a95fa2ba0f23ae05a12e67
MD5 a08d320bf0782f2d267fff43888c520a
BLAKE2b-256 b1a838db19ed21618c11c7b5177defc3142d535d4a5402cc795cfeafeb4207dd

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