Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I was looking at possibly using this module for a Drupal 8 project coming down the pipeline. Having spent a lot of time looking at core and how things have changed from Drupal 7 thought I would make some suggestions. The first is that the OAuth class satisfies the requirements of being managed via package manager or composer. The second is to define the OAuth class as a service exposed/managed via the DI container. These two things seem to patterns prevalent throughout the Drupal 8 architecture and seem very applicable here. Just a thought.
Comments
Comment #1
juampynr CreditAttribution: juampynr commentedThanks for the suggestion, however, I started using PECL's OAuth library at #2027863: Make Oauth module an AuthenticationProvider and so far the first attempt has been successful. This makes that we won't need lib/OAuth.php classes anymore which is great since we will rely in a third party package instead of maintaining our own implementation.