Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Flarum extension to authenticate users with Magento store account

Notifications You must be signed in to change notification settings

vovayatsyuk/flarum-ext-auth-magento

Repository files navigation

Flarum authentication with Magento store

Extension provides ability to authenticate into Flarum forum with Magento store account.

Frontend Backend Settings
Flarum login popup Flarum login popup

It's not working yet It works! 👍

Unfortunately Magento does not provide user info endpoint for the currently authenticated user, so this module can't receive any user details after authentication.

OAuth 1.0 Client finally has a built-in support for magento stores.

Installation

composer require vovayatsyuk/flarum-ext-auth-magento

Configure module at Flarum extensions management page.

Store URL   - Your Magento store url
API Key     - Consumer Key
API Secret  - Consumer Secret

If you are not sure where to get API key and secret - proceed to the magento setup section.

Magento setup

  1. Allow Authenticated Customer to access to the Customer resource.

    • Navigate to System > Web Services > REST - Roles and select Customer role.

      REST Roles Grid

    • Switch to Role API Resources tab and grant access to Customer/Customer/Retrieve resource.

      Customer Role Form

  2. Allow Authenticated Customer to access to Email, First Name and Last Name attributes.

    • Navigate to System > Web Services > REST - Attributes and select Customer user type.

      REST Roles Grid

    • Grant access to read Email, First Name and Last Name attributes.

      Attribute Rules for Customer Role

  3. Create OAuth Consumer.

    • Navigate to System > Web Services > REST - OAuth Consumers and press Add New button in right upper corner.

      OAuth Consumers Grid

    • Fill Consumer Name and save it.

      OAuth Consumer Form

      That's it! Now you can use the Key and Secret fields values for Flarum extension configuration.

About

Flarum extension to authenticate users with Magento store account

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published