All Projects → solovev → steam_go

solovev / steam_go

Licence: other
Simple steam auth util in golang

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to steam go

Bnetlauncher
Launcher utility to help start battle.net games with the steam overlay.
Stars: ✭ 161 (+631.82%)
Mutual labels:  steam, utility
BoilR
Synchronize games from other platforms into your Steam library
Stars: ✭ 664 (+2918.18%)
Mutual labels:  steam
as-a
Runs a given command with additional environment settings for simple local development
Stars: ✭ 60 (+172.73%)
Mutual labels:  utility
catsay
🐱 💻 like cowsay but cats
Stars: ✭ 33 (+50%)
Mutual labels:  utility
steam-hour-boost
🔧 Script for idling, boosting playtime in hours, for chosen game without using computer resources. CSGO test successfully.
Stars: ✭ 21 (-4.55%)
Mutual labels:  steam
steam-box
🎮 Update profile README / pinned gist to contain your Steam playtime leaderboard. 在你的 profile README / pinned gist 上显示你的 steam 游玩时间排行榜。
Stars: ✭ 118 (+436.36%)
Mutual labels:  steam
AjaxHandler
ASimple PHP Class to help handling Ajax Requests easily
Stars: ✭ 30 (+36.36%)
Mutual labels:  utility
steam-mass-comment-bot
💬 Comment with a few clicks under a ton of steam profiles & groups!
Stars: ✭ 16 (-27.27%)
Mutual labels:  steam
roberta
Steam Play compatibility tool to run adventure games using native Linux ScummVM
Stars: ✭ 139 (+531.82%)
Mutual labels:  steam
pytest-stress
A Pytest plugin that allows you to loop tests for a user defined amount of time.
Stars: ✭ 39 (+77.27%)
Mutual labels:  utility
emma.css
🍴 Emma.css { utility-classes: emmet-like; }
Stars: ✭ 53 (+140.91%)
Mutual labels:  utility
RunDLL-NG
A better alternative to RunDLL32
Stars: ✭ 23 (+4.55%)
Mutual labels:  utility
aws-docker-deploy
Scripts and templates for deploying docker containers to aws / elastic beanstalk
Stars: ✭ 18 (-18.18%)
Mutual labels:  utility
SteamBuff Market-WalletBalance
饰品筛选倒余额 比例自定义 已适配buff c5game igxe
Stars: ✭ 66 (+200%)
Mutual labels:  steam
shelvery-aws-backups
Automating EBS RDS EC2 backups on lambda
Stars: ✭ 31 (+40.91%)
Mutual labels:  utility
BlauBot
A discord bot providing a collection of useful and unrelated commands
Stars: ✭ 16 (-27.27%)
Mutual labels:  utility
sortr.py
sort files using python
Stars: ✭ 15 (-31.82%)
Mutual labels:  utility
web-mqtt-client
A better MQTT API for the browser
Stars: ✭ 48 (+118.18%)
Mutual labels:  utility
Steam-Scripts
Steam userscripts
Stars: ✭ 76 (+245.45%)
Mutual labels:  steam
telegram-counter-bot
A simple, easy to use counter bot to keep track of all the amazing things in your Telegram group!
Stars: ✭ 29 (+31.82%)
Mutual labels:  utility

steam_go

Simple steam auth util

Installation

$ go get github.com/solovev/steam_go

Usage

Just go run main.go in example dir and open localhost:8081/login link to see how it works

Code from ./example/main.go:

package main

import (
	"net/http"

	"github.com/solovev/steam_go"
)

func loginHandler(w http.ResponseWriter, r *http.Request) {
	opId := steam_go.NewOpenId(r)
	switch opId.Mode() {
	case "":
		http.Redirect(w, r, opId.AuthUrl(), 301)
	case "cancel":
		w.Write([]byte("Authorization cancelled"))
	default:
		steamId, err := opId.ValidateAndGetId()
		if err != nil {
			http.Error(w, err.Error(), http.StatusInternalServerError)
		}

		// Do whatever you want with steam id
		w.Write([]byte(steamId))
	}
}

func main() {
	http.HandleFunc("/login", loginHandler)
	http.ListenAndServe(":8081", nil)
}

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].