This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Projects » Netgen Connect

Netgen Connect

Wednesday 09 February 2011 - http://projects.ez.no/ngconnect

Netgen Connect is a simple eZ Publish extension able to provide user sign in by using social network authentication and authorization. (Facebook Connect for example).

» Visit project page    » Project members    » Reviews

Latest forum activity - Visit project's forums page

Thursday 29 September 2011 8:35:15 am

Hi,

I am using facebook connect with this extension and recently I've got this message from FB:

<i>"Reminder: Upgrade Your App to OAuth 2.0 and HTTPS by October 1st. In May we announced that all apps on Facebook need to support OAuth 2.0 and HTTPS to make the platform more secure."</i>

Should I worry about my FB application, or is ngconnect ok regarding this issue?

Thanks,

Slavo

Thursday 29 September 2011 9:35:15 am

Hello Slavo,

Netgen Connect already uses HTTPS and oAuth 2.0 to talk to Facebook apps, so there is nothing to worry about happy.gif Emoticon

Wednesday 23 November 2011 12:05:26 am

Thanks for this useful and promising extension.

On top of signing in with social network credentials, I need to actually use their API to post status based on actions on my site.

I guess the best way would be to store the token in the ngconnect table so I can use it in API calls.

=> is this the best way?

=> would someone know how to add this field ?

(I'm not an actual developer sad.gif Emoticon )

Thanks in advance for your help happy.gif Emoticon

Mickael

Thursday 24 November 2011 4:05:20 pm

Hello Mickael,

API token can certainly be stored in the database and it's not a problem.

You can checkout ngConnect PHP class to atleast give you the overview how the thing works. That class wraps ngconnect database table into PHP code and allows you to fetch data from the table and store the data without any SQL.

However, the code that works with tokens needs to be modified to work with stored tokens, nothing fancy, but needs to be done and it would require couple of days of coding

Friday 25 November 2011 10:35:22 am

Hi Mickael,

your changes look quite good. Although, in ngconectfunctions.php/connectUser, you might wanna update the token in the database if the row already exists, and not just store it first time when the user logs in.

As far as using the token for making API calls, you'll probably need to modify ngConnectAuthTwitter to actually request read/write permissions instead of only read permissions.

I'm afraid I can't help you with that as I didn't go into depth with how oAuth in Twitter works, just what was required to get ngconnect working.

You should check out https://dev.twitter.com/docs/auth

Tuesday 15 May 2012 10:05:32 pm

Hi,

I wonder if there's a way to detect an already established connection (user is already logged into Facebook for example) and log the user in directly without having to click on the Facebook button?

What currently happens with me, is that users who already have a valid connection with Facebook have to click on the login button, and then the authentication pop opens up and closes immediately, and the page refreshes and then the user is logged in.

Wednesday 16 May 2012 11:05:37 am

Hi Abdallah,

I'm not sure it can be done. What you would need is the user ID from Facebook to be able to log him in automatically, and I see no way in obtaining it without user action.

On the other side, if it were up to me, I would not like automatic login. What if user doesn't want to be logged in? What if someone else is logged in on Facebook when the user is accessing your web? This way, you leave the choice to the user, which is IMO much better option then trying to guess happy.gif Emoticon

Members - Visit project's team page
Real name:
Edi Modrić
Country:
Croatia 
#Posts:
325
Real name:
Igor Vrdoljak
Country:
Croatia 
#Posts:
58
Project reviews - See all reviews

No review yet.

Proudly Developed with from