This plugin allows you to authenticate users via Steam OpenID.
Download and copy this repository to /site/plugins/steamsso
.
composer require scheibo/steamsso
You need to get a Steam API Key from Steam.
Add the following configuration to your site/config/config.php
:
return [
'steam' => [
'apiKey' => '',
'loginUrl' => 'https://www.example.com',
'emailDomain' => '[email protected]',
'role' => 'steamuser',
],
];
Add the following code to your template:
<?php snippet('steamsso/loginbutton') ?>
Add the following code to your template:
<?php snippet('steamsso/logoutbutton') ?>
Add the following code to your template:
<?php snippet('steamsso/userinfo') ?>
Add the following code to your template:
<?= css('site/plugins/steamsso/steamsso.css') ?>