Social Auth Zalo allows users login to Drupal site with their Zalo account. The module request Id and Name in Zalo API for authenticate user.
This module adds a path: user/login/zalo this path will redirect user to Zalo login page.
After Zalo return the user back to website, the module use Zalo SDK to request Access Token then get the user's Id, Name from Zalo API.
Installation
- Install the module as every other module
- Please refer my screencast for configuration: https://youtu.be/_E8xHB9keAI
Dependencies
Please use modules version below for social_auth_zalo:8.x-2.x:
- Social Auth (2.0-rc1 - https://www.drupal.org/project/social_auth)
- Social Api (2.0-rc1 - https://www.drupal.org/project/social_api)
- Zalo SDK for PHP (v2.0.0 - https://github.com/zaloplatform/zalo-php-sdk)
Zalo App
Project link
https://www.drupal.org/project/social_auth_zalo
Git intructions
git clone --branch 8.x-2.x https://git.drupalcode.org/project/social_auth_zalo.git
PAReview checklist
https://pareview.sh/pareview/https-git.drupal.org-project-social_auth_za...
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | drupal-check.png | 145.87 KB | phthlaap |
| #6 | phpstan.png | 284.91 KB | phthlaap |
Comments
Comment #2
vuilComment #3
vuilHello,
Thank you for the contribution!
Please fix the following issues:
(1.) Make the default Git branch to be '8.x-2.x'.
(2.) Please fix the following issues:
Comment #4
phthlaap commentedHi,
Thank you for your support. I changed default Git branch to 8x-2.x (1), also fixed the issues (2).
Please help to review again.
Thanks,
Comment #5
vuilThank you for the good work!
There are additional issues which you need to fix them:
Comment #6
phthlaap commentedHi @ilchovuchkov,
Thank you for your review. Is it report by phpstan?
Could you please help to share with me how to config it?
Because When I install and run it show only one issue, please see my screenshot
Thanks,
Comment #7
vuil@phthlaap Yes, you are right.
This is additional product based on PHPStan:
mglaman/drupal-check - CLI tool for running checks on a Drupal code base
https://github.com/mglaman/drupal-check
Please use after install:
composer --global require mglaman/drupal-checkin your project root:
drupal-check -ad web/modules/social_auth_zalo(to test your project/module folder)
I hope this will be helpful for many of us. :)
Thank you.
Read more.
Comment #8
phthlaap commentedHi @ilchovuchkov,
is there any problem in my local? :)

It shown No errors.
Comment #9
vuilThank you for the contribution!
I have not found any security related issues into the code.
Comment #10
phthlaap commentedHi @ilchovuchkov,
Thank you for your support. I'm looking forward my modules can release with "Drupal.org Security Advisory Coverage" logo.
I have learned much with this work.
Comment #11
phthlaap commentedHi,
Could you please let me know or suggest me the next step of this issue. I spend time to much and all of my mind for that. I look forward it approved.
Comment #12
avpadernoThank you for your contribution! I am going to update your account.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank all the dedicated reviewers as well.
Comment #13
phthlaap commentedThanks @kiamlaluno for your support.
I will read that document you suggest. This issue is fixed so can I open the "closed (dublicate)" issue to review again.
Comment #14
avpadernoThere isn't any need to re-open it, since you can opt into security coverage for any project you created (and you will create).