Skip to content

A Steam Single Sign-On (SSO) plugin that ensures seamless integration with Steam accounts within Kirby, allowing users to authenticate using their Steam credentials. This plugin significantly streamlines the authentication process for gaming platforms and services.

Notifications You must be signed in to change notification settings

scheibome/SteamSSO

Repository files navigation

SteamSSO Plugin for Kirby 4

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

About

A Steam Single Sign-On (SSO) plugin that ensures seamless integration with Steam accounts within Kirby, allowing users to authenticate using their Steam credentials. This plugin significantly streamlines the authentication process for gaming platforms and services.

Resources

Stars

Watchers

Forks

Packages

No packages published