{"repo":"xPaw/SteamOpenID.php","free":true,"listed":false,"github":"https://github.com/xPaw/SteamOpenID.php","clone":"git clone https://github.com/xPaw/SteamOpenID.php.git","description":"🐘 A correct and simple implementation of Steam OpenID authentication","language":"PHP","stars":57,"topics":["php","openid","authentication","steam"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Steam OpenID Authentication for PHP A very minimalistic OpenID implementation that hardcodes it for Steam only, as using a generic OpenID library may do unnecessary steps of “discovering” OpenID servers, which will end up leaking your origin server address, and worse, leave your website open to vulnerabilities of claiming wrong Steam profiles if the implementation is bugged. The described problems are not theoretical, LightOpenID has been proven to have implementation problems, and even if you use validate and use regex on the final identity it can be spoofed and a third-party server can be used to pass the validation. This library aims to avoid these problems by implementing the bare minimum functionality required for validating Steam OpenID requests against the hardcoded Steam server. This library only implements validation, you will need to implement Steam WebAPI calls yourself to fetch user profile information. Before using this library, please read Valve's terms here. Installation composer require xpaw/steam-openid See Example.php file for example usage. Basic usage If you want to parse SteamIDs, take a look at SteamID.php. Advanced usage Passing GET parameters manually If you need to pass request parameters manually instead of using $ GET , you can provide them in the constructor: Custom HTTP client If you need to customize the HTTP request to Steam (e.g., using a different HTTP client, adding proxies, or custom timeouts), you can override the SendSteamRequest method:","default_branch":null,"files":null,"tree":[],"storefront":"/r/xPaw","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xPaw/SteamOpenID.php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}