Skip to content

Moves GMail plugin to use the Joomla HTTP library#6692

Closed
wilsonge wants to merge 9 commits intojoomla:stagingfrom
wilsonge:gmailhttp
Closed

Moves GMail plugin to use the Joomla HTTP library#6692
wilsonge wants to merge 9 commits intojoomla:stagingfrom
wilsonge:gmailhttp

Conversation

@wilsonge
Copy link
Copy Markdown
Contributor

@wilsonge wilsonge commented Apr 7, 2015

This utilises a framework PR (joomla-framework/http#12) to extend the transport options in Joomla for the SSL request. Currently to keep things incremental the plugin still only uses Curl, but in the future may allow to use other request methods that are available.

To test you can check that the Gmail authentication plugin still verifies users properly

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Apr 7, 2015

@wilsonge i have just send you a PR: wilsonge#11 to fix codestyle. I will try to test now 😄

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Apr 7, 2015

@wilsonge on login with this patch applyed i get:

Catchable fatal error: Argument 1 passed to JHttp::__construct() must be an instance of Joomla\Registry\Registry, array given, called in JROOT/plugins/authentication/gmail/gmail.php on line 67 and defined in JROOT/libraries/joomla/http/http.php on line 42

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since JHttp still requires a Registry instance, we can cut the if part of this out and just have a foreach ($this->options->get('transport.curl', array()) as $key => $value) line here.

@wilsonge
Copy link
Copy Markdown
Contributor Author

wilsonge commented Apr 7, 2015

@zero-24 my bad - a small typo injecting the wrong variable 😞 Fixed along with the changes @mbabker proposed

@davdebcom
Copy link
Copy Markdown
Contributor

@test
Gmail login still seems to be working after patch.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6692.

@brianteeman
Copy link
Copy Markdown
Contributor

Tested with all the options in the plugin and gmail authentication still works


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6692.

@brianteeman
Copy link
Copy Markdown
Contributor

Setting RTC


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6692.

@zero-24 zero-24 added the RTC This Pull Request is Ready To Commit label Jun 21, 2015
@mbabker
Copy link
Copy Markdown
Contributor

mbabker commented Jul 11, 2015

Merged to 3.5-dev via 479b507

@wilsonge wilsonge deleted the gmailhttp branch July 11, 2015 14:26
@zero-24 zero-24 removed the RTC This Pull Request is Ready To Commit label Oct 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants