scheibo / steamsso
A Steam SSO plugin for seamless integration with Steam accounts in Kirby, enabling users to log in with their Steam credentials. Simplifies authentication for gaming platforms and services.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:kirby-plugin
Requires
- getkirby/composer-installer: ^1.2
- league/oauth2-client: ^2.7
Requires (Dev)
- getkirby/cms: ^4
This package is auto-updated.
Last update: 2024-05-03 08:59:36 UTC
README
This plugin allows you to authenticate users via Steam OpenID.
Installation
Download
Download and copy this repository to /site/plugins/steamsso
.
Composer
composer require scheibo/steamsso
Configuration
Steam API Key
You need to get a Steam API Key from Steam.
Kirby Configuration
Add the following configuration to your site/config/config.php
:
return [ 'steam' => [ 'apiKey' => '', 'loginUrl' => 'https://www.example.com', 'emailDomain' => 'steamuser@example.com', 'role' => 'steamuser', ], ];
Add Steam Login Button
Add the following code to your template:
<?php snippet('steamsso/loginbutton') ?>
Add Steam Logout Button
Add the following code to your template:
<?php snippet('steamsso/logoutbutton') ?>
Add Steam User Info
Add the following code to your template:
<?php snippet('steamsso/userinfo') ?>
Add stylesheet
Add the following code to your template:
<?= css('site/plugins/steamsso/steamsso.css') ?>