Authentication plugin demo

2 May 2008 - 14:35

I received numerous questions about using the authentication plugin. The top question was: "does it work in Joomla 1.0?". I'm afraid it doesn't and it probably never will. If your keen on knowing how to use the plugin and don't know where to start: please watch this video (and ignore the wobbly english).

This is a demonstration of the Joomla authentication plugin I wrote. It allows you to grant SugarCRM contacts automatic access to Joomla.

Comments

SugarCE 5.0G and Joomla 1.5.6

Joomla/SugarCRM » 3 September 2008 - 01:01

I tried with SugarCE 5.0 and it worked fine, but when upgraded to or fresh installed SugarCE 5.0G (patch G), it will not work. It kept saying "Please enter a valid email address". Can you update the sugarauth.php code to get it worked with SugarCE 5.0G. Thanks a lot.

Re: SugarCE 5.0G and Joomla 1.5.6

Bas » 3 September 2008 - 12:42
bas's picture

I'll try to update the software asap.

any status on updating the

troy » 18 September 2008 - 21:47

any status on updating the code yet?

thanks.

How was your vacation? Have

troy » 27 November 2008 - 09:49

How was your vacation? Have you had the chance to update the code yet? Thanks

fix

Bas » 28 November 2008 - 05:14
bas's picture

I believe I've fixed the problem... I'll send you the newest version. If it tests okay I'll release it to the public.

Wijzigen Portal_name

Otto Smittenaar » 16 December 2008 - 02:49

De Plug-in is echt tegek. Ik heb het werkend nadat ik het password field opnieuw heb aangemaakt als normaal tekst veld in de plaats van een encripted veld.

Ik heb van alles gestest. Wijzigen van het wachtwoordt het aan en uitzetten van active, maar wanneer ik de Portal_name aanpas werkt het niet meer. Dan komen ze niet meer met elkaar overeen. Is dit bekend?

Groeten Otto

Details?

Ken » 10 January 2009 - 08:52

As the last poster may be saying, there seems a disconnect between the login module in Joomla which is trying to decrypt and MD5 and salted password, where we are probably not putting encrypted passwords in to the joomla_password_c field.

Will there be a new version for Sugar 5.2?

todo: encrypted passwords

Bas » 12 January 2009 - 16:05
bas's picture

Dear Ken & Otto,
thanks for using the plugin.
You are quite right that encrypted password fields pose a problem right now. It's one of the most prominent things on my todo list. And it shouldn't be that big of a problem getting this to work.
I'll be releasing a new version in the next month or so. So just hang tight, it'll work sooner or later.

Sugar 5.2 and different user modules

Guus Derks » 25 January 2009 - 16:00

Hello Bas,

First of all great work. I have a questions and a feature request.

Is it correct that the plugin doesn't work with sugar 5.2 and joomla 1.5?

Furthermore, I have different types (read modules) in Sugar for different types of contacts (we have a 'uitzendbureau' -> Clients and Candidates).

Feature request: It would be nice to specify the module where to look for login/pwd combination and assign a role accordingly.

Best regards! Groeten!

Guus

Issue solved

Guus Derks » 25 January 2009 - 18:34

Hello Bas,

I reinstalled the plugin and now it works. I'm still in the dark why it didn't work before...

Anyway; keep up the good work!

Greetz Guus

5.2

Bas » 26 January 2009 - 20:33
bas's picture

Hi Guus,

good to hear sugar5.2 works. Thanks for your feedback.

Store sugarid in joomla database

Guus Derks » 3 February 2009 - 13:17

Hello Bas,

I'm a bit lost when I take a look at the code.

First; I managed to install your plugin 2 times under different names and with some modifications, I managed to get my candidates to login aswell.

Now I'm a bit lost in your code...

I try to save the sugar crm ID into the joomla user table. I need this because I'm devellopping a form (using the ported Facile forms) where it's possible to manage for the contactpersons to manage there own information in sugar, through the joomla website.

So my problem is (offcourse there is a workaround, by contact to the Joomla database directly and firing an update query) how to store the sugar id into the joomla database while using your code? I'm probably just missing it, but where is the part that enters the sugar user into the joomla database upon first login?

Best regards,

Guus Derks

(ps I send this msg in English so other people may use it, and you replies, as a reference)

Hi Guus, you could store the

Bas » 17 March 2009 - 19:11
bas's picture

Hi Guus,
you could store the value in the user parameters field. It's not part of the default authentication procedure of Joomla though. But in theory you can store all kinds of data to any table while authenticating. However, the very thing you are trying to accomplish with the authentication plugin is being developed by me in a component. It'll be a while before I release it to the general public though.

Joomla Authentication plug in and custom field

Joe » 25 February 2009 - 20:45

Hello Bas, I am new to Sugarcrm, just playing around with it to see what it does. I was watching your video for the Joomla Authentication plug in, and you mention in the video you created a custom field for Joomla password under the portal information in contacts. How did you do this, and is this field necessary? You also mentioned you could configure the plug in to use a different field such as email for the joomla password, how exactly would I do that? I did not see any parameters within the plugin in Joomla.

Thanks

Joe
http://www.nitchfly.com

Joe, I posted a video

Bas » 17 March 2009 - 19:05
bas's picture

Joe, I posted a video explaining the custom fields. You can watch it here: http://codeculture.nl/authentication/custom-fields-sugarcrm

Joomla 1.5.3 Sugar 5.2.0a (Build 5447) compatibility ?

Anonymous » 17 March 2009 - 05:15

it´s compatible ?
I have some problems and the Auth plugin is 1.0.4 .

Is need to change manually some parameters in plugin "auth" PHP files or in sugar soap.php file ?

thanks

You don't need to change the

Bas » 17 March 2009 - 19:07
bas's picture

You don't need to change the sugarcrm soap files. Just configure the systems correctly. If you don't use a "portal only" user but a regular user everything should work properly.

Joomla 1.5.3 Sugar 5.2.0a (Build 5447) compatibility ?

Anonymous » 17 March 2009 - 05:23

is comptatible with Authentication plugin 1.0.4 or need manually changes in Joomla PHP files or sugar soap.php file ?

the sugar user to comunicate with joomla has changed "portal_only" with value "1" and contacts had corrects values

Thanks

SI ALGUIEN HABLA ESPAÑOL AGRADECERIA AYUDA EN ESTO. SALUDOS

compatible

Bas » 17 March 2009 - 19:13
bas's picture

I doublechecked. It's still compatible. If you are using the default portal fields, you might run into some problems though. The portal fields are no longer available to the community and professional editions of sugarcrm. To solve this problem, you can use custom fields only.

Help - Sugar 5.2 and Joomla 1.5.9

Cakehole » 19 March 2009 - 06:29

Hey Bas, trying to get the module to work with the above versions - I too am fairly limited in my knowledge of PHP and web services - Any help you could give would be greatly appreciated.

I activate the module, configured to use custom SugarCRM fields I have set up, but when I try to log in to Joomla, I receive the standard User ID not configured or found. Is this related to the encrypted password issue?

Cameron

It's hard to tell your

Bas » 19 March 2009 - 11:52
bas's picture

It's hard to tell your problem from the limited description you gave me.
It's unlikely this is related to the encrypted password issue because version 0.1.4 uses unencrypted passwords.

I'll release a new version soon. To accompany it I'll post a new instruction video too. Let's hope that'll solve your problem.

Sugar installed in sub-domain - Incorrect soap URL exposed

Cameron » 20 March 2009 - 05:04

Bas, I am a relative newbie to SOAP and integration - I am building a portal for customers of my wife's business and I want hte authentication to work out of her Sugar instance. Sugar is not installed in the webroot (ie. www.site.com) but rather a sub-domain (ie. crm.site.com) - The plugin is not working and when I review the WSDL from Sugar Soap, I notice the location near the end of the WSDL dump is www.site.com - I know this does not directly relate to your module, but any ideas on how I change the soap output to reflect the correct soap URL? I use Joomla 1.5.9 and Sugar 5.2.0 with the latest version of your plugin. Cheers, Cameron (Australia)

soap.php location

Bas » 20 March 2009 - 16:15
bas's picture

Hi Cameron,

it doesn't matter where your sugarcrm is installed. Even if it were installed on another server it should work. Just enter the full url of the soap.php file in the authentication plugin's configuration. i.e.: http://crm.site.com/soap.php
If you misconfigured SugarCRM you should alter the active directory of sugarcrm. You can edit the /config.php file and change the site url parameter to match the correct installation directory of your sugarcrm. There are a couple of other parameters that might need editing. Be careful and backup the config.php file before you do this, though. You can seriously mess up you sugarcrm installation if you incorrectly edit this file.

good luck,
Bas

Hello I am doing a school

Sara » 29 May 2009 - 19:13

Hello
I am doing a school project using Joomla and SugarCRM. I've created the custom fields and all, but when I try logging in a random user created in Sugar with Joomla I get the "No such user" note. This is because of the password encryption right? I read the posts above and noticed someone else had this problem. I was wondering if you have managed to solve this.
Thank you

nu such user

Bas » 1 June 2009 - 10:48
bas's picture

Hi Sara,

I have fixed this problem. I have a working plugin in sugarcrm 5.2 + Joomla 1.5.10. But if the plugin says "no such user" it is not an encryption problem. Mail me your email address please by using the contact form on this site. And I'll make sure you get a development version to work with.
Oh, and please share what your school project entails, I'm really curious.

I've mailed you the

Bas » 9 June 2009 - 16:22
bas's picture

I've mailed you the nightlies, if you have any remarks or suggestions, do send your feedback.

Something a little odd!

Michael » 26 August 2009 - 19:14

Hi Bas,

Great work.  I am new to SugarCRM and relatively new to Joomla but stumbled across your plug-in and have to say I am wrapped!  I recently moved from Salesforce to Sugar and we have been trying to get this sort of functionality ( and more of course ) working in SFDC for 2 years with no joy.  20 min and I have your plugin working in a test environment.  One thing that slowed me down was working out NOT encrypting the password field using version 0.1.4

Anyway, the reason for my comment here is that I have noticed a strange behavior, and I am really not sure why it is happening or how it all works so thought I would bring it up.

I have a Joomla 1.5.10 and v0.1.4 of the plug-in and Sugar 5.2i.

When I do a login using a sugar user, it logs in fine, and creates the Joomla user.

I was the curious to see what would happen if I did a 'forgot password' request.  It worked.. sort of... I got the token email to reset the password... 'password' was the original password, so I set 'password2' as the new password.

So, I tried to log in with the new password, and it worked.  I then checked the Sugar DB to see if it had updated it, but it had not.. so I tried to login with the old password, and that worked also??

So, I now have one user, that can login with two different passwords.  It is not a big issue for me, but I thought it was interesting.. and thought I would pass it on.

With some furthur testing, I discovered that if I disabled the user active in Sugar, the the origional password would no longer work, but the new password does, which means if someone updated their password, then the 'active' field is no longer effective.

I did see a feature request on the Joomlacode site for 'forgot password' functionality.. I guess it is about half way there.

Anyway, thanks again for a great tool, and I would love to hear what you think about the issue above.

Cheers

Michael

feedback

Bas » 6 September 2009 - 15:57
bas's picture

Hi Michael, thank you very much for your feedback. I will have to look into the password / duplicate user problems. Happy to hear you are using the plugin despite it's shortcomings. If you do any development to it yourself, please let me know.

not working in joomla 1.5.14

chris » 15 September 2009 - 19:53

Hi Bas!

Thanks for the nice tool. But unfortunately i tried whole night yesterday but cannot start it. I saw your video and did everything as per the instructions but without success. I am using joomla 1.5.14 and sugarcrm 5.0.2i

When i try to login with joomla frontend it shows error username and password do not match or you dont have an account yet. You must login first.

(though i have set the plugin to be public)

 

Also the files on the download site shows sugarauth version 0.1.4 dt. 2008-12-28. Is this your latest version?

Please help.

 

thanks,

best regards,

chris

Encrypted field

Bas » 16 September 2009 - 12:39
bas's picture

Hi Chris,

a mistake many people make is using an encrypted field as password field. Did you use a regular text field? Encryption is supported in the next release of the plugin.

best regards,
Bas

Almost, not yet

Ruben » 20 November 2009 - 00:19

Hi Bas,

first of all thanks that we can use your plugin.

Unfortunately, it doesn't work yet on my side.
When i login i see on the sugarcrm side that the user is authenticated.
I see the select statements in the debug log so i presume that's working.

But then nothing happens... No user is created in the joomla backend.
Nor do i see a message that I'm authenticated.
When i go back to the login form on the website, I woulld assume that i see a logout button, but in fact i see the same login form...

Looking forward to read your feedback!

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <br>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <drupal6>, <javascript>, <php>. The supported tag styles are: <foo>, [foo].

More information about formatting options