{"id":13703951,"url":"https://github.com/BlackCetha/SteamAuthOOP","last_synced_at":"2025-05-05T09:32:24.832Z","repository":{"id":34201043,"uuid":"38056947","full_name":"BlackCetha/SteamAuthOOP","owner":"BlackCetha","description":"OpenID-Login through Steam for your website","archived":false,"fork":false,"pushed_at":"2021-01-08T08:57:28.000Z","size":20,"stargazers_count":37,"open_issues_count":1,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-03T21:04:26.008Z","etag":null,"topics":["openid","openid-client","steam","steam-api","steam-login"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BlackCetha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-25T15:16:31.000Z","updated_at":"2024-04-07T22:17:24.000Z","dependencies_parsed_at":"2022-08-08T00:01:57.636Z","dependency_job_id":null,"html_url":"https://github.com/BlackCetha/SteamAuthOOP","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackCetha%2FSteamAuthOOP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackCetha%2FSteamAuthOOP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackCetha%2FSteamAuthOOP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackCetha%2FSteamAuthOOP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlackCetha","download_url":"https://codeload.github.com/BlackCetha/SteamAuthOOP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224439611,"owners_count":17311485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["openid","openid-client","steam","steam-api","steam-login"],"created_at":"2024-08-02T21:01:02.135Z","updated_at":"2024-11-13T11:30:28.715Z","avatar_url":"https://github.com/BlackCetha.png","language":"PHP","funding_links":[],"categories":["Packages"],"sub_categories":["PHP"],"readme":"# SteamAuthOOP\nOOP-based Steam-Login library\n\n# Features\n- One-File class\n- Doesnt rely on an external library\n- Easy to use\n- Easy to modify with commented code and function reference\n- Saves *all* information the Steam-API provides on a per-user basis\n- Doesnt recreate/delete your session if you use it elsewhere\n\n# Installation\n- Drop the `steamauthoop.class.php` file into your projects directory\n- Insert your API-Key from http://steamcommunity.com/dev/apikey into the config (`$settings[\"apikey\"]`)\n- Include it with `require \"steamauthoop.class.php\";`\n- Initialize it with `$steam = new SteamAuthOOP();`\n\n# Basic usage\nIf you want to have a link, go with\n`\u003ca href=\"\u003c?php echo $steam-\u003eloginUrl(); ?\u003e\"\u003eLink\u003c/a\u003e`\n\n\nCheck if the user is logged in with\n`$steam-\u003eloggedIn();`\n(Will return true or false)\n\n\nUser-Data is accessible through `$steam-\u003evarName;`\nYou can find a basic list of variables in the demo file or a more advanced one in the code.\n\n\n### Example\n\n```php\n\u003c?php\n  require(\"steamauthoop.class.php\");\n  $steam = new SteamAuthOOP();\n  if ($steam-\u003eloggedIn()) {\n    echo \"Hello \".$steam-\u003epersonaname.\"!\";\n  } else {\n    echo \"\u003ca href='\".$steam-\u003eloginUrl().\"'\u003eLogin\u003c/a\u003e\";\n  }\n?\u003e\n```\n\n# Planned\nNothing at the moment.\nOpen an issue if you think there is something that could be better.\n\n# Data security\nThe library does not deliver safe/escaped data as it would limit the functionality.\nThis will leave your site vulnerable to cross-site-scripting (\"XSS\") and SQL-injection attacks if you dont take actions to prevent them.\n\n### XSS\nFor example if a user calls himself `\u003cscript src='http://example.com/hacks.js'\u003e\u003c/script\u003e` and you print that name to other users, their browser will download `hacks.js`.\n\nYou can prevent that by passing the string through `htmlspecialchars($string)`.\n\n### SQL injection\nFor example if a user calls himself `\"; DROP TABLE *;--` and you directly execute that as an SQL-query, you will loose all your data.\n\nYou can prevent that by passing the strings through `mysqli_escape_string($link, $string)` or `$mysqli-\u003eescape_string($string)`.\n\n# Legal stuff\nIf you choose to use the steam web-api you need to follow the Steam Web API Terms of Use found at\nhttp://steamcommunity.com/dev/apiterms\n\nThe marked code is taken from Syntax_Error's \"Ultra Simple Steam-Login\" Class found at ~\u003chttp://forums.steampowered.com/forums/showthread.php?t=1430511\u003e~ (Link is dead, [archive version](https://web.archive.org/web/20170524123709/http://forums.steampowered.com/forums/showthread.php?t=1430511))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBlackCetha%2FSteamAuthOOP","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBlackCetha%2FSteamAuthOOP","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBlackCetha%2FSteamAuthOOP/lists"}