The SSO Connector module facilitates the integration of Single Sign-On (SSO) between Drupal sites, enhancing both security and user experience by enabling unified authentication across multiple systems. This module is ideal for organizations managing multiple Drupal sites or applications that require a consistent and secure user authentication method.
Key Features:
Single Sign-On: Allows users to log in once and gain access to multiple related systems without needing to re-authenticate.
User Synchronization: Automatically creates accounts on Service Providers (SPs) if they do not already exist, ensuring a consistent user identity across Identity Providers (IdPs) and SPs.
Configurable Security Settings: Offers customizable security options to tailor the SSO experience according to organizational needs.
User Experience Enhancement: Reduces password fatigue and the potential for password-related security breaches while improving login convenience.
Commitment to Security:
I am committed to maintaining and updating this module in collaboration with the Drupal security team to ensure it adheres to Drupal's best security practices and coding standards.
This module has been developed following strict security standards to ensure that all systems integrated through SSO maintain a high level of protection against vulnerabilities.
I welcome any feedback and am open to making the necessary modifications suggested by reviewers to ensure security coverage and contribute to the Drupal community.
Project link
https://www.drupal.org/project/sso_connector
Thank you for considering this module for security advisory coverage. I am eager to collaborate with the security team and contribute to a safer Drupal community.
| Comment | File | Size | Author |
|---|---|---|---|
| #24 | configFormBase.PNG | 36.1 KB | cesarmsfelipe |
Comments
Comment #2
cesarmsfelipe commentedComment #3
vishal.kadamThank you for applying!
Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.
The important notes are the following.
phpcs --standard=Drupal,DrupalPracticeon the project, which alone fixes most of what reviewers would report.To the reviewers
Please read How to review security advisory coverage applications, Application workflow, What to cover in an application review, and Tools to use for reviews.
The important notes are the following.
For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues.
Comment #4
vishal.kadamComment #5
rushikesh raval commentedFix the phpcs Error :
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml sso_connector/
FILE: /sso_connector/README.md
------------------------------------------------------------------------
FOUND 1 ERROR AND 13 WARNINGS AFFECTING 13 LINES
------------------------------------------------------------------------
3 | WARNING | [ ] Line exceeds 80 characters; contains 300 characters
22 | WARNING | [ ] Line exceeds 80 characters; contains 103 characters
24 | WARNING | [ ] Line exceeds 80 characters; contains 150 characters
30 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
34 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
36 | WARNING | [ ] Line exceeds 80 characters; contains 123 characters
37 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
38 | WARNING | [ ] Line exceeds 80 characters; contains 201 characters
39 | WARNING | [ ] Line exceeds 80 characters; contains 138 characters
45 | WARNING | [ ] Line exceeds 80 characters; contains 97 characters
57 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
58 | WARNING | [ ] Line exceeds 80 characters; contains 186 characters
64 | WARNING | [ ] Line exceeds 80 characters; contains 100 characters
64 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------
FILE: /sso_connector/sso_connector.info.yml
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | Remove "version" from the info file, it will be added by
| | drupal.org packaging automatically
--------------------------------------------------------------------------------
FILE: /sso_connector/src/tests/src/Kernel/SsoTokenTest.php
--------------------------------------------------------------------------------
FOUND 10 ERRORS AND 2 WARNINGS AFFECTING 12 LINES
--------------------------------------------------------------------------------
7 | WARNING | [x] Unused use statement
11 | ERROR | [x] Use statements should be sorted alphabetically. The first
| | wrong one is Drupal\KernelTests\KernelTestBase.
15 | WARNING | [x] Unused use statement
74 | ERROR | [x] Whitespace found at end of line
76 | ERROR | [x] Whitespace found at end of line
93 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
94 | ERROR | [x] Expected 5 space(s) before asterisk; 3 found
95 | ERROR | [x] Expected 5 space(s) before asterisk; 3 found
96 | ERROR | [x] Expected 1 blank line before function; 0 found
98 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced
| | with use statements
139 | ERROR | [x] Expected 1 blank line after function; 2 found
142 | ERROR | [x] The closing brace for the class must have an empty line
| | before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
Time: 1.17 secs; Memory: 10MB
Comment #6
vishal.kadam@Rushikesh Raval Please include the command that was used, along with its arguments.
Comment #7
vishal.kadam1.
1.0.0andmainare wrong names for a branch. Release branch names always end with the literal .x as described in Release branches. The only exception is for the main branch, which is actually not fully supported on drupal.org and should be avoided.2. FILE: sso_connector.module
Remove { @inheritdoc } from the doc comment. {@inheritdoc} is used if you are overriding or implementing a method from a base class or interface.
The usual description for a .module file is Hook implementations for the [module name] module. where [module name] is the module name given in the .info.yml file.
Comment #8
rushikesh raval commentedThanks @vishal.kadam. command added in comment.
Comment #9
cesarmsfelipe commentedThank you both for the feedback, I have solved all the phpcs requirements, deleted wrong branches and fixed the standard comments. Let me know if there is something else to change or improve.
Comment #10
rushikesh raval commentedRest looks fine to me.
Let’s wait for a Code Review Administrator to take a look and if everything goes fine, you will get the role.
Comment #11
avpadernoI did not make a complete review, but the following point needs to be fixed.
Projects hosted on drupal.org are licensed under GPLv2+, the same license used from Drupal core. If you are licensing a project under a different license, it cannot he hosted on drupal.org. More details are given in Drupal Git Contributor Agreement & Repository Usage Policy.
See also If I write a module or theme, do I have to license it under the GPL?
For code licensed under GPLv3, see I want to release my work under GPL version 3 or under GPL version 2-only. Can I do so and host it on Drupal.org?
Comment #12
cesarmsfelipe commented@apaderno Thanks for your review, I have changed the license using the drupalcode template for version 2.
Comment #13
vishal.kadamChanges looks fine to me.
Let’s wait for a Code Review Administrator to take a look and if everything goes fine, you will get the role.
Comment #14
cesarmsfelipe commentedHi @vishal.kadam, how is the process going, is it normal to take so long? Sorry for being insistent, this is the first time I apply for this review process.
Comment #15
vishal.kadamYes, it is normal. Sometimes the application queue experiences a backlog, and applications may sit in the queue for months before getting reviewed.
Comment #16
avpadernosrc/Controller/SsoController.php
The parent class has already properties and methods for the logger factory, the entity type manager, and the configuration object. There is no need to re-define properties for the same purpose; instead, the parent class methods should be used.
src/Authentication/Provider/CustomCookie.php
The
Drupal\user\Authentication\Provider\Cookieclass is not part of the public API. It cannot be used as parent class for a contributed module.src/EventSubscriber/CheckIdPSessionSubscriber.php
$this->logger->info('Redirecting to IdP for authentication.', ['url' => $idpUrl]);There isn't any placeholder for
tokennorurl.+1 👍🏻 for implementing tests.
Comment #17
cesarmsfelipe commentedThank you for your review and your time @apaderno, I correct the errors you have reported and I am always open to suggestions that can improve performance and security.
Comment #18
vishal.kadamI am changing priority as per Issue priorities.
Comment #19
cesarmsfelipe commentedShould it be in Reviewed and tested by the community? @vishal.kadam
Comment #20
vishal.kadamI am changing priority as per Issue priorities.
Comment #21
avpadernoI apologize I was not clear in my previous comment: The class constructor needs to call
setLoggerFactory().src/Form/IdpConfigForm.php
The constructor is not calling the parent class' constructor.
sso_connector.info.yml
core_version_requirement: ^9 || ^10 || ^11Given the changes in
ConfigFormBase, the module cannot be compatible with all those Drupal releases. (In particular, see the changes to the constructor between Drupal 9.x and Drupal 10.x.)Comment #22
cesarmsfelipe commentedThank you for the feedback. I have made the necessary changes as you suggested:
IdpConfigForm Constructor: I have updated the constructor to call the parent class's constructor and included the setLoggerFactory() method to ensure proper initialization.
sso_connector.info.yml: I have reviewed and adjusted the core_version_requirement.
Please let me know if there are any further adjustments needed.
Comment #23
avpadernoConfigFormBase::__construct()requires two parameters.Comment #24
cesarmsfelipe commentedHi @avpaderno sorry I thought it wasn't necessary as it is null set by default in the configFormBase.

However, I have added it, thanks for the feedback.
Comment #25
avpadernoIt has a default value in Drupal 10, but Drupal 10 will trigger a deprecation error.
Furthermore, in Drupal 11, that parameter does not have any default value.
Comment #26
avpadernoThank you for your contribution and for your patience with the review process!
I am going to update your account so you can opt into security advisory coverage any project you create, including the projects you already created.
These are some recommended readings to help you with maintainership:
You can find more contributors chatting on Slack or IRC in #drupal-contribute. So, come hang out and stay involved!
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 the dedicated reviewers as well.
Comment #27
avpaderno