glue-agency/craft-glue-auth

Use your Glue Google Account to login to any CMS

Installs: 4 305

Dependents: 0

Suggesters: 0

Security: 0

Type:craft-plugin

5.0.0 2024-04-04 08:41 UTC

This package is auto-updated.

Last update: 2024-05-04 08:46:01 UTC


README

This plugin adds a "G" button to the Craft Admin login. This simplifies logging in to any CMS set up by Glue-Agency. Works for Local and Remote environments using a Google OAuth proxy.

Requirements

This plugin requires Craft CMS 5.0.0 or later, and PHP 8.2 or later.

Installation

Create a glue-auth.php file in the /config folder with this config

return [
    // This token is used to decrypt data sent
    // from the oAuth proxy
    'encryptionToken' => getenv('GLUE_AUTH_ENCRYPTION_TOKEN'),
];

Finally add the env vars to your .env and .env.example.

With Composer

Open your terminal and run the following commands

# Require the plugin through composer
composer require glue-agency/craft-glue-auth

# Install the plugin
php craft plugin/install glue-auth