-
Notifications
You must be signed in to change notification settings - Fork 1
OpenID Notes
福狼 edited this page May 13, 2026
·
1 revision
addons/openid is used for browser-based Steam sign-in verification.
It confirms the user's Steam identity. It is not a general Web API credential system.
The OpenID addon helps with:
- building the Steam OpenID login URL
- verifying the callback against Steam
- calling
check_authentication - recovering
SteamID64 - preserving and checking
state
It does not:
- replace a Steam Web API key
- replace an access token
- fetch profile data automatically
- manage your application session
- store users in your database
- handle frontend UI for you
1. Generate random state
2. Store state in a secure cookie or server-side session
3. Redirect user to Steam OpenID login URL
4. Steam redirects back to your callback URL
5. Verify callback with addons/openid
6. Compare returned state with stored state
7. Create your own application session
go run ./examples/openidWith proxy:
go run ./examples/openid --proxy http://127.0.0.1:7897- Always verify
state. - Do not ask users for Steam username or password.
- OpenID only proves identity; authorization decisions still belong to your application.
- Use HTTPS in production.
- Keep your application session separate from Steam OpenID verification.
____ ____ ____ _ _ ____ ____ _ _ / ____ ___ ____ ____ _ _ ____ ____
| __ | | |___ | | |__/ |__/ \_/ / [__ | |___ |__| |\/| __ | __ | |
|__] |__| | |__| | \ | \ | / ___] | |___ | | | | |__] |__|
- SteamID Model
- Steam Web API Notes
- Public Store Page Access Notes
- Partner API Notes
- OpenID Notes
- A2S Notes
- Steam Keys and Access Tokens
- Steam Static Assets
- Steam VDF and addons/vdf
- Steam Web API 特性说明
- 公开商店页面访问说明
- Partner API 说明
- OpenID 说明
- A2S 说明
- Steam Key 与 Access Token
- Steam 静态资源
- Steam VDF 与 addons/vdf