Flarum authentication with Magento store
Extension provides ability to authenticate into Flarum forum with Magento store
account., (*1)
Frontend |
Backend Settings |
|
|
~~It's not working yet~~ It works! :+1:
~~Unfortunately Magento does not provide user info endpoint for the currently
authenticated user, so this module can't receive any user details after
authentication.~~, (*2)
OAuth 1.0 Client finally has
a built-in support for magento stores., (*3)
Installation
composer require vovayatsyuk/flarum-ext-auth-magento
Configure module at Flarum extensions management page., (*4)
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., (*5)
Magento setup
-
Allow Authenticated Customer to access to the Customer
resource., (*6)
-
Navigate to System > Web Services > REST - Roles
and select Customer
role., (*7)
, (*8)
-
Switch to Role API Resources
tab and grant access to
Customer/Customer/Retrieve
resource., (*9)
, (*10)
-
Allow Authenticated Customer to access to Email
, First Name
and Last Name
attributes., (*11)
-
Navigate to System > Web Services > REST - Attributes
and select Customer
user type., (*12)
, (*13)
-
Grant access to read Email
, First Name
and Last Name
attributes., (*14)
, (*15)
-
Create OAuth Consumer., (*16)
-
Navigate to System > Web Services > REST - OAuth Consumers
and press
Add New
button in right upper corner., (*17)
, (*18)
-
Fill Consumer Name and save it., (*19)
, (*20)
That's it! Now you can use the Key
and Secret
fields values for Flarum
extension configuration., (*21)