vovayatsyuk/flarum-ext-auth-magento

This package is abandoned and no longer maintained. No replacement package was suggested.

Allow users to log in with Magento based store.

Installs: 23

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:flarum-extension

v0.1.0-beta.2 2016-01-28 14:29 UTC

This package is auto-updated.

Last update: 2023-03-12 00:15:23 UTC


README

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.