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.

1.0.1 2024-04-03 08:49 UTC

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') ?>