Jeffrey Handa Hace 13 años Great post Wilson, thanks for the sharing this information! Por favor identifíquese para votar. Contestar como... Cancelar
Sampsa Sohlman Hace 13 años Thanks, this is interesting and useful feature. Por favor identifíquese para votar. Contestar como... Cancelar
Sandeep Nair Hace 13 años Awesome feature and very nicely explained! Por favor identifíquese para votar. Contestar como... Cancelar
Jonas X. Yuan Hace 13 años nice feature! Por favor identifíquese para votar. Contestar como... Cancelar Jonas X. Yuan Jonas X. Yuan Hace 13 años Hi Wilson, Thanks. This is nice feature!Do you have any plan on SSO via Twitter? Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Jonas X. Yuan Hace 13 años hi Jonas, it's something we're interested in implementing sometime in the future also. Por favor identifíquese para votar. Contestar como... Cancelar
Jonas X. Yuan Jonas X. Yuan Hace 13 años Hi Wilson, Thanks. This is nice feature!Do you have any plan on SSO via Twitter? Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Jonas X. Yuan Hace 13 años hi Jonas, it's something we're interested in implementing sometime in the future also. Por favor identifíquese para votar. Contestar como... Cancelar
Wilson Man Jonas X. Yuan Hace 13 años hi Jonas, it's something we're interested in implementing sometime in the future also. Por favor identifíquese para votar. Contestar como... Cancelar
M. Ahamed Maqbool Hace 13 años Great Post,could you please help me how to do the same with other Social Networks like Flicker,youtube,Buzz,Twitter,etc.. Por favor identifíquese para votar. Contestar como... Cancelar Gabriel Leon Leyva M. Ahamed Maqbool Hace 13 años greate !!! thanks Wilson, know that we are logged to facebook, can we have facebook wall or images in liferay? is there a way to do that?thanks a lot for the info. Greate Job!! Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Gabriel Leon Leyva Hace 13 años i believe so. i'll have to review the API, it may be possible via their Graph API (also through their JavaScript API) Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man M. Ahamed Maqbool Hace 13 años hi M. Ahamed, I'm not as familiar with those APIs, but if you have specific questions regarding their integration, feel free to ask them in our forums and we'll do our best to shed some light when possible! Por favor identifíquese para votar. Contestar como... Cancelar M. Ahamed Maqbool Wilson Man Hace 13 años Hi Wilson Man, thank you for replay we could Reference this pages.Twitter:http://dev.twitter.com/pages/sign_in_with_twitterFlicker:Reference link : http://www.flickr.com/services/api/Youtube:http://code.google.com/apis/youtube/2.0/reference.htmlBuzz:http://code.google.com/apis/buzz/v1/getting_started.html Por favor identifíquese para votar. Contestar como... Cancelar
Gabriel Leon Leyva M. Ahamed Maqbool Hace 13 años greate !!! thanks Wilson, know that we are logged to facebook, can we have facebook wall or images in liferay? is there a way to do that?thanks a lot for the info. Greate Job!! Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Gabriel Leon Leyva Hace 13 años i believe so. i'll have to review the API, it may be possible via their Graph API (also through their JavaScript API) Por favor identifíquese para votar. Contestar como... Cancelar
Wilson Man Gabriel Leon Leyva Hace 13 años i believe so. i'll have to review the API, it may be possible via their Graph API (also through their JavaScript API) Por favor identifíquese para votar. Contestar como... Cancelar
Wilson Man M. Ahamed Maqbool Hace 13 años hi M. Ahamed, I'm not as familiar with those APIs, but if you have specific questions regarding their integration, feel free to ask them in our forums and we'll do our best to shed some light when possible! Por favor identifíquese para votar. Contestar como... Cancelar M. Ahamed Maqbool Wilson Man Hace 13 años Hi Wilson Man, thank you for replay we could Reference this pages.Twitter:http://dev.twitter.com/pages/sign_in_with_twitterFlicker:Reference link : http://www.flickr.com/services/api/Youtube:http://code.google.com/apis/youtube/2.0/reference.htmlBuzz:http://code.google.com/apis/buzz/v1/getting_started.html Por favor identifíquese para votar. Contestar como... Cancelar
M. Ahamed Maqbool Wilson Man Hace 13 años Hi Wilson Man, thank you for replay we could Reference this pages.Twitter:http://dev.twitter.com/pages/sign_in_with_twitterFlicker:Reference link : http://www.flickr.com/services/api/Youtube:http://code.google.com/apis/youtube/2.0/reference.htmlBuzz:http://code.google.com/apis/buzz/v1/getting_started.html Por favor identifíquese para votar. Contestar como... Cancelar
Dhananjay Tiwari Hace 13 años This will come handy . Thanks for sharing Por favor identifíquese para votar. Contestar como... Cancelar
Andrew Tillinghast Hace 13 años This feature is great and I've already enabled it with the site I'm currently developing. However, when a user logs into the portal with facebook after creating an account they are taken back to the current page and not to the default landing page. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Andrew Tillinghast Hace 13 años Andrew, are you using the "default.landing.page.path" property to set the landing page? I just tried it and you're right, it doesn't land on that page after autologin, but it also doesn't land there after normal login for me, are you experiencing the same for normal login? Por favor identifíquese para votar. Contestar como... Cancelar Andrew Tillinghast Wilson Man Hace 13 años In Liferay 6.0.4, via control Panel.portal.settings.Navigation.Default Landing Page I have set "/web/members/home". When logging in via the normal email/pass combo the landing page is handled correctly, when login with facebook the user returns to the current page, just authenticated. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Andrew Tillinghast Hace 13 años i see, i'm on 6.0.5 and will have to check with the core team. thanks for the feedback! Por favor identifíquese para votar. Contestar como... Cancelar Joshua Asbury Wilson Man Hace 13 años This is all kinds of awesome. Thanks! Por favor identifíquese para votar. Contestar como... Cancelar divya goyal Wilson Man Hace 7 años Hi Wilson,This is a very helpful blog. I am also trying to have the similar sign on process using with Google using oauth token.Is it possible if you can provide the step by step process for the build which has been done for Facebook, so that i can implement the same using Google? I have already enable the ldap authentication, but with that i want to provide google login as well, the user are not stored in liferay DB. The main user storage is in Active Directory. SO in such scenario how to enable both the sign on process.Please help as i am new with the ouath authentication process. Por favor identifíquese para votar. Contestar como... Cancelar
Wilson Man Andrew Tillinghast Hace 13 años Andrew, are you using the "default.landing.page.path" property to set the landing page? I just tried it and you're right, it doesn't land on that page after autologin, but it also doesn't land there after normal login for me, are you experiencing the same for normal login? Por favor identifíquese para votar. Contestar como... Cancelar Andrew Tillinghast Wilson Man Hace 13 años In Liferay 6.0.4, via control Panel.portal.settings.Navigation.Default Landing Page I have set "/web/members/home". When logging in via the normal email/pass combo the landing page is handled correctly, when login with facebook the user returns to the current page, just authenticated. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Andrew Tillinghast Hace 13 años i see, i'm on 6.0.5 and will have to check with the core team. thanks for the feedback! Por favor identifíquese para votar. Contestar como... Cancelar Joshua Asbury Wilson Man Hace 13 años This is all kinds of awesome. Thanks! Por favor identifíquese para votar. Contestar como... Cancelar divya goyal Wilson Man Hace 7 años Hi Wilson,This is a very helpful blog. I am also trying to have the similar sign on process using with Google using oauth token.Is it possible if you can provide the step by step process for the build which has been done for Facebook, so that i can implement the same using Google? I have already enable the ldap authentication, but with that i want to provide google login as well, the user are not stored in liferay DB. The main user storage is in Active Directory. SO in such scenario how to enable both the sign on process.Please help as i am new with the ouath authentication process. Por favor identifíquese para votar. Contestar como... Cancelar
Andrew Tillinghast Wilson Man Hace 13 años In Liferay 6.0.4, via control Panel.portal.settings.Navigation.Default Landing Page I have set "/web/members/home". When logging in via the normal email/pass combo the landing page is handled correctly, when login with facebook the user returns to the current page, just authenticated. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Andrew Tillinghast Hace 13 años i see, i'm on 6.0.5 and will have to check with the core team. thanks for the feedback! Por favor identifíquese para votar. Contestar como... Cancelar Joshua Asbury Wilson Man Hace 13 años This is all kinds of awesome. Thanks! Por favor identifíquese para votar. Contestar como... Cancelar divya goyal Wilson Man Hace 7 años Hi Wilson,This is a very helpful blog. I am also trying to have the similar sign on process using with Google using oauth token.Is it possible if you can provide the step by step process for the build which has been done for Facebook, so that i can implement the same using Google? I have already enable the ldap authentication, but with that i want to provide google login as well, the user are not stored in liferay DB. The main user storage is in Active Directory. SO in such scenario how to enable both the sign on process.Please help as i am new with the ouath authentication process. Por favor identifíquese para votar. Contestar como... Cancelar
Wilson Man Andrew Tillinghast Hace 13 años i see, i'm on 6.0.5 and will have to check with the core team. thanks for the feedback! Por favor identifíquese para votar. Contestar como... Cancelar Joshua Asbury Wilson Man Hace 13 años This is all kinds of awesome. Thanks! Por favor identifíquese para votar. Contestar como... Cancelar divya goyal Wilson Man Hace 7 años Hi Wilson,This is a very helpful blog. I am also trying to have the similar sign on process using with Google using oauth token.Is it possible if you can provide the step by step process for the build which has been done for Facebook, so that i can implement the same using Google? I have already enable the ldap authentication, but with that i want to provide google login as well, the user are not stored in liferay DB. The main user storage is in Active Directory. SO in such scenario how to enable both the sign on process.Please help as i am new with the ouath authentication process. Por favor identifíquese para votar. Contestar como... Cancelar
Joshua Asbury Wilson Man Hace 13 años This is all kinds of awesome. Thanks! Por favor identifíquese para votar. Contestar como... Cancelar
divya goyal Wilson Man Hace 7 años Hi Wilson,This is a very helpful blog. I am also trying to have the similar sign on process using with Google using oauth token.Is it possible if you can provide the step by step process for the build which has been done for Facebook, so that i can implement the same using Google? I have already enable the ldap authentication, but with that i want to provide google login as well, the user are not stored in liferay DB. The main user storage is in Active Directory. SO in such scenario how to enable both the sign on process.Please help as i am new with the ouath authentication process. Por favor identifíquese para votar. Contestar como... Cancelar
Abhishek Saxena Hace 13 años This is so cool , great feature to attract more site trafficThanks for configuration steps Por favor identifíquese para votar. Contestar como... Cancelar
zaheer mohammed saddapalli Hace 13 años Xcellent work ... Por favor identifíquese para votar. Contestar como... Cancelar
Philippe Dias Hace 13 años great feature! If using exclusively this method of authentication, I guess I don´t need a LDAP as there are no credentials to store, right?thank you Por favor identifíquese para votar. Contestar como... Cancelar
Ernst Blaas Hace 13 años hi wilson,I tried to use the SSO via Facebook, but after clicking "Add Account" nothing happens.No user added, no loginAny Idea?I'm testing on localhost:8080, liferay 6.0.5btw. the facebook form for Application registration has changed Por favor identifíquese para votar. Contestar como... Cancelar Ravikant Kumar Ernst Blaas Hace 13 años Hi Enric,I did some investigation on this and this is what I could figure out:The FacebookConnectAction class performs all actions related to facebook SSO login. Thisclass expects a boolean parameter 'verified' in the jsonObject received from Facebook, but this parameter is somehow not being received and it returns from the following lines without doing anything:if (!jsonObject.getBoolean("verified")) {return;}I just commented the above lines (twice in the code) and it worked for me. Also, the size of the email column in the _user table needs to be increased to accommodate dynamically generated email id which is larger than default column size.Thanks,Ravikant Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Ravikant Kumar Hace 13 años thanks Ernst and Ravikant for bringing this to my attention. I will test this later this week. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Wilson Man Hace 13 años actually, i just tested it, and it's working fine for me. the "verified" is still returned by FB. you probably need to have a valid FB account for this to work. If you think there's a case where we may want to allow "unverified" FB accounts to work, let me know and I can make that configurable. Por favor identifíquese para votar. Contestar como... Cancelar Ravikant Kumar Wilson Man Hace 13 años Making it configurable would be a good idea. Like us, who are not sure what is wrong with our FB accounts, this issue can bother others too.Will discuss this issue with FB support to know what may be causing this.Thanks Por favor identifíquese para votar. Contestar como... Cancelar divya goyal Wilson Man Hace 7 años Hi Wilson,I need the information regarding the authentication method based on token which has been used for Facebook based SSO. I want the similar kind of implementation on my portlet method for implementing it with Google. Google have the user Email address store in the google database and sending the same in the authentication token.All the user details are stored in the Active directory, on the basis of authentication token if the user is not present i the portlet database and if the user exist in the Active directory i want the application to authenticate the user based on the trust established between the Portal and Google.Please suggest as i am stuck on the authentication aspect of the user, i have already started with the custom portlet to get the oauth based token and validating the same, but how to proceed with the next step.Thanks in advance!! Por favor identifíquese para votar. Contestar como... Cancelar Adolfo Enrique Benedetti Ravikant Kumar Hace 13 años Hi,we're stuck on the same issue of Zhou Wu (we are using liferay 6.0.5) : facebook redirect and authorization seems to work fine, but when it redirects back to liferay, it's still unauthenticated. We've also noticed that the column USER_.facebookId is null.What we tried was to:- create an ext plugin - using liferay 6.0.5 SDK(attached) - including docroot/WEB-INF/ext-impl/src/com/liferay/portal/action/login/FacebookConnectAction.java , copied from the 6.0.5 SVN tag, applying the patches mentioned by Ravikant Kumar- alter USER_ table, modifying column emailAddress from varchar(50) to varchar(255), as suggested by Ravikant Kumar- Add some logs statements to see if liferay is picking up our version or not.Logs statements are logged, but still does not work; no errors, no warnings, no exceptions.Any idea? Thanks. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Adolfo Enrique Benedetti Hace 13 años thank you all for reporting this issue to me and for giving me such detail. I'm in the process of getting the latest from the 6.0.x branch to see if the issue is there. I'm hoping to report back no later than the end of this week, hopefully sooner. Por favor identifíquese para votar. Contestar como... Cancelar Gabriel Leon Leyva Wilson Man Hace 13 años in rev 73726 facebook option doesnt work. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Gabriel Leon Leyva Hace 13 años - Editado hi All, I've gotten a chance this morning to test with 6.0.5 and no bug was found. I was able to import my facebook account (and also SSO) into a clean Liferay portal 6.0.5 CE.I've added a few additional notes to my instruction above. For those of you having issues with redirect, make sure your domains are set correctly. On Facebook's side, make sure the Site URL field has the proper port, etc.As for facebook accounts that are not verified, it's simple to verify your account. If you do not want to for whatever reason, you can follow the steps outlined in the comments above to override the verification code on liferay side.Otherwise, Facebook SSO is working fine in 6.0.5 CE. thank you all. Por favor identifíquese para votar. Contestar como... Cancelar Abhay Doshi Wilson Man Hace 13 años Hey Wilson ! Well the issue remains persistent. Here's the scenario:My Facebook redirect URL setting : http://portal.xxxxxx.com/c/login/facebook_connect_oauthLiferay Main configuration:Virtual host : portal.xxxxxx.comDefault landing page : /web/group/announcementsIf I log a user in without using Facebook SSO, it correctly redirects him to portal.xxxxxx.com/web/group/announcements post authentication.Whereas, If I login the user using Facebook, the user is sent to portal.xxxxxx.com/home and not the page that I have set as the default landing page.Do you know why that might be happening and what can I do to ensure that even FB authenticated users go to the same landing page ?Thanks. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Abhay Doshi Hace 13 años hi Abhay, thanks for your feedback. With regards to the post authentication redirect, the Facebook SSO implementation terminates at the auto-login phase within the whole login process. The rest is governed by Liferay's auto-login mechanism. So while there isn't anything the FB SSO feature can add to help with this redirection issue you're having, you may have better luck looking into the auto-login implementation to find the answer. Por favor identifíquese para votar. Contestar como... Cancelar
Ravikant Kumar Ernst Blaas Hace 13 años Hi Enric,I did some investigation on this and this is what I could figure out:The FacebookConnectAction class performs all actions related to facebook SSO login. Thisclass expects a boolean parameter 'verified' in the jsonObject received from Facebook, but this parameter is somehow not being received and it returns from the following lines without doing anything:if (!jsonObject.getBoolean("verified")) {return;}I just commented the above lines (twice in the code) and it worked for me. Also, the size of the email column in the _user table needs to be increased to accommodate dynamically generated email id which is larger than default column size.Thanks,Ravikant Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Ravikant Kumar Hace 13 años thanks Ernst and Ravikant for bringing this to my attention. I will test this later this week. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Wilson Man Hace 13 años actually, i just tested it, and it's working fine for me. the "verified" is still returned by FB. you probably need to have a valid FB account for this to work. If you think there's a case where we may want to allow "unverified" FB accounts to work, let me know and I can make that configurable. Por favor identifíquese para votar. Contestar como... Cancelar Ravikant Kumar Wilson Man Hace 13 años Making it configurable would be a good idea. Like us, who are not sure what is wrong with our FB accounts, this issue can bother others too.Will discuss this issue with FB support to know what may be causing this.Thanks Por favor identifíquese para votar. Contestar como... Cancelar divya goyal Wilson Man Hace 7 años Hi Wilson,I need the information regarding the authentication method based on token which has been used for Facebook based SSO. I want the similar kind of implementation on my portlet method for implementing it with Google. Google have the user Email address store in the google database and sending the same in the authentication token.All the user details are stored in the Active directory, on the basis of authentication token if the user is not present i the portlet database and if the user exist in the Active directory i want the application to authenticate the user based on the trust established between the Portal and Google.Please suggest as i am stuck on the authentication aspect of the user, i have already started with the custom portlet to get the oauth based token and validating the same, but how to proceed with the next step.Thanks in advance!! Por favor identifíquese para votar. Contestar como... Cancelar Adolfo Enrique Benedetti Ravikant Kumar Hace 13 años Hi,we're stuck on the same issue of Zhou Wu (we are using liferay 6.0.5) : facebook redirect and authorization seems to work fine, but when it redirects back to liferay, it's still unauthenticated. We've also noticed that the column USER_.facebookId is null.What we tried was to:- create an ext plugin - using liferay 6.0.5 SDK(attached) - including docroot/WEB-INF/ext-impl/src/com/liferay/portal/action/login/FacebookConnectAction.java , copied from the 6.0.5 SVN tag, applying the patches mentioned by Ravikant Kumar- alter USER_ table, modifying column emailAddress from varchar(50) to varchar(255), as suggested by Ravikant Kumar- Add some logs statements to see if liferay is picking up our version or not.Logs statements are logged, but still does not work; no errors, no warnings, no exceptions.Any idea? Thanks. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Adolfo Enrique Benedetti Hace 13 años thank you all for reporting this issue to me and for giving me such detail. I'm in the process of getting the latest from the 6.0.x branch to see if the issue is there. I'm hoping to report back no later than the end of this week, hopefully sooner. Por favor identifíquese para votar. Contestar como... Cancelar Gabriel Leon Leyva Wilson Man Hace 13 años in rev 73726 facebook option doesnt work. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Gabriel Leon Leyva Hace 13 años - Editado hi All, I've gotten a chance this morning to test with 6.0.5 and no bug was found. I was able to import my facebook account (and also SSO) into a clean Liferay portal 6.0.5 CE.I've added a few additional notes to my instruction above. For those of you having issues with redirect, make sure your domains are set correctly. On Facebook's side, make sure the Site URL field has the proper port, etc.As for facebook accounts that are not verified, it's simple to verify your account. If you do not want to for whatever reason, you can follow the steps outlined in the comments above to override the verification code on liferay side.Otherwise, Facebook SSO is working fine in 6.0.5 CE. thank you all. Por favor identifíquese para votar. Contestar como... Cancelar Abhay Doshi Wilson Man Hace 13 años Hey Wilson ! Well the issue remains persistent. Here's the scenario:My Facebook redirect URL setting : http://portal.xxxxxx.com/c/login/facebook_connect_oauthLiferay Main configuration:Virtual host : portal.xxxxxx.comDefault landing page : /web/group/announcementsIf I log a user in without using Facebook SSO, it correctly redirects him to portal.xxxxxx.com/web/group/announcements post authentication.Whereas, If I login the user using Facebook, the user is sent to portal.xxxxxx.com/home and not the page that I have set as the default landing page.Do you know why that might be happening and what can I do to ensure that even FB authenticated users go to the same landing page ?Thanks. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Abhay Doshi Hace 13 años hi Abhay, thanks for your feedback. With regards to the post authentication redirect, the Facebook SSO implementation terminates at the auto-login phase within the whole login process. The rest is governed by Liferay's auto-login mechanism. So while there isn't anything the FB SSO feature can add to help with this redirection issue you're having, you may have better luck looking into the auto-login implementation to find the answer. Por favor identifíquese para votar. Contestar como... Cancelar
Wilson Man Ravikant Kumar Hace 13 años thanks Ernst and Ravikant for bringing this to my attention. I will test this later this week. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Wilson Man Hace 13 años actually, i just tested it, and it's working fine for me. the "verified" is still returned by FB. you probably need to have a valid FB account for this to work. If you think there's a case where we may want to allow "unverified" FB accounts to work, let me know and I can make that configurable. Por favor identifíquese para votar. Contestar como... Cancelar Ravikant Kumar Wilson Man Hace 13 años Making it configurable would be a good idea. Like us, who are not sure what is wrong with our FB accounts, this issue can bother others too.Will discuss this issue with FB support to know what may be causing this.Thanks Por favor identifíquese para votar. Contestar como... Cancelar divya goyal Wilson Man Hace 7 años Hi Wilson,I need the information regarding the authentication method based on token which has been used for Facebook based SSO. I want the similar kind of implementation on my portlet method for implementing it with Google. Google have the user Email address store in the google database and sending the same in the authentication token.All the user details are stored in the Active directory, on the basis of authentication token if the user is not present i the portlet database and if the user exist in the Active directory i want the application to authenticate the user based on the trust established between the Portal and Google.Please suggest as i am stuck on the authentication aspect of the user, i have already started with the custom portlet to get the oauth based token and validating the same, but how to proceed with the next step.Thanks in advance!! Por favor identifíquese para votar. Contestar como... Cancelar
Wilson Man Wilson Man Hace 13 años actually, i just tested it, and it's working fine for me. the "verified" is still returned by FB. you probably need to have a valid FB account for this to work. If you think there's a case where we may want to allow "unverified" FB accounts to work, let me know and I can make that configurable. Por favor identifíquese para votar. Contestar como... Cancelar Ravikant Kumar Wilson Man Hace 13 años Making it configurable would be a good idea. Like us, who are not sure what is wrong with our FB accounts, this issue can bother others too.Will discuss this issue with FB support to know what may be causing this.Thanks Por favor identifíquese para votar. Contestar como... Cancelar divya goyal Wilson Man Hace 7 años Hi Wilson,I need the information regarding the authentication method based on token which has been used for Facebook based SSO. I want the similar kind of implementation on my portlet method for implementing it with Google. Google have the user Email address store in the google database and sending the same in the authentication token.All the user details are stored in the Active directory, on the basis of authentication token if the user is not present i the portlet database and if the user exist in the Active directory i want the application to authenticate the user based on the trust established between the Portal and Google.Please suggest as i am stuck on the authentication aspect of the user, i have already started with the custom portlet to get the oauth based token and validating the same, but how to proceed with the next step.Thanks in advance!! Por favor identifíquese para votar. Contestar como... Cancelar
Ravikant Kumar Wilson Man Hace 13 años Making it configurable would be a good idea. Like us, who are not sure what is wrong with our FB accounts, this issue can bother others too.Will discuss this issue with FB support to know what may be causing this.Thanks Por favor identifíquese para votar. Contestar como... Cancelar
divya goyal Wilson Man Hace 7 años Hi Wilson,I need the information regarding the authentication method based on token which has been used for Facebook based SSO. I want the similar kind of implementation on my portlet method for implementing it with Google. Google have the user Email address store in the google database and sending the same in the authentication token.All the user details are stored in the Active directory, on the basis of authentication token if the user is not present i the portlet database and if the user exist in the Active directory i want the application to authenticate the user based on the trust established between the Portal and Google.Please suggest as i am stuck on the authentication aspect of the user, i have already started with the custom portlet to get the oauth based token and validating the same, but how to proceed with the next step.Thanks in advance!! Por favor identifíquese para votar. Contestar como... Cancelar
Adolfo Enrique Benedetti Ravikant Kumar Hace 13 años Hi,we're stuck on the same issue of Zhou Wu (we are using liferay 6.0.5) : facebook redirect and authorization seems to work fine, but when it redirects back to liferay, it's still unauthenticated. We've also noticed that the column USER_.facebookId is null.What we tried was to:- create an ext plugin - using liferay 6.0.5 SDK(attached) - including docroot/WEB-INF/ext-impl/src/com/liferay/portal/action/login/FacebookConnectAction.java , copied from the 6.0.5 SVN tag, applying the patches mentioned by Ravikant Kumar- alter USER_ table, modifying column emailAddress from varchar(50) to varchar(255), as suggested by Ravikant Kumar- Add some logs statements to see if liferay is picking up our version or not.Logs statements are logged, but still does not work; no errors, no warnings, no exceptions.Any idea? Thanks. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Adolfo Enrique Benedetti Hace 13 años thank you all for reporting this issue to me and for giving me such detail. I'm in the process of getting the latest from the 6.0.x branch to see if the issue is there. I'm hoping to report back no later than the end of this week, hopefully sooner. Por favor identifíquese para votar. Contestar como... Cancelar Gabriel Leon Leyva Wilson Man Hace 13 años in rev 73726 facebook option doesnt work. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Gabriel Leon Leyva Hace 13 años - Editado hi All, I've gotten a chance this morning to test with 6.0.5 and no bug was found. I was able to import my facebook account (and also SSO) into a clean Liferay portal 6.0.5 CE.I've added a few additional notes to my instruction above. For those of you having issues with redirect, make sure your domains are set correctly. On Facebook's side, make sure the Site URL field has the proper port, etc.As for facebook accounts that are not verified, it's simple to verify your account. If you do not want to for whatever reason, you can follow the steps outlined in the comments above to override the verification code on liferay side.Otherwise, Facebook SSO is working fine in 6.0.5 CE. thank you all. Por favor identifíquese para votar. Contestar como... Cancelar Abhay Doshi Wilson Man Hace 13 años Hey Wilson ! Well the issue remains persistent. Here's the scenario:My Facebook redirect URL setting : http://portal.xxxxxx.com/c/login/facebook_connect_oauthLiferay Main configuration:Virtual host : portal.xxxxxx.comDefault landing page : /web/group/announcementsIf I log a user in without using Facebook SSO, it correctly redirects him to portal.xxxxxx.com/web/group/announcements post authentication.Whereas, If I login the user using Facebook, the user is sent to portal.xxxxxx.com/home and not the page that I have set as the default landing page.Do you know why that might be happening and what can I do to ensure that even FB authenticated users go to the same landing page ?Thanks. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Abhay Doshi Hace 13 años hi Abhay, thanks for your feedback. With regards to the post authentication redirect, the Facebook SSO implementation terminates at the auto-login phase within the whole login process. The rest is governed by Liferay's auto-login mechanism. So while there isn't anything the FB SSO feature can add to help with this redirection issue you're having, you may have better luck looking into the auto-login implementation to find the answer. Por favor identifíquese para votar. Contestar como... Cancelar
Wilson Man Adolfo Enrique Benedetti Hace 13 años thank you all for reporting this issue to me and for giving me such detail. I'm in the process of getting the latest from the 6.0.x branch to see if the issue is there. I'm hoping to report back no later than the end of this week, hopefully sooner. Por favor identifíquese para votar. Contestar como... Cancelar Gabriel Leon Leyva Wilson Man Hace 13 años in rev 73726 facebook option doesnt work. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Gabriel Leon Leyva Hace 13 años - Editado hi All, I've gotten a chance this morning to test with 6.0.5 and no bug was found. I was able to import my facebook account (and also SSO) into a clean Liferay portal 6.0.5 CE.I've added a few additional notes to my instruction above. For those of you having issues with redirect, make sure your domains are set correctly. On Facebook's side, make sure the Site URL field has the proper port, etc.As for facebook accounts that are not verified, it's simple to verify your account. If you do not want to for whatever reason, you can follow the steps outlined in the comments above to override the verification code on liferay side.Otherwise, Facebook SSO is working fine in 6.0.5 CE. thank you all. Por favor identifíquese para votar. Contestar como... Cancelar Abhay Doshi Wilson Man Hace 13 años Hey Wilson ! Well the issue remains persistent. Here's the scenario:My Facebook redirect URL setting : http://portal.xxxxxx.com/c/login/facebook_connect_oauthLiferay Main configuration:Virtual host : portal.xxxxxx.comDefault landing page : /web/group/announcementsIf I log a user in without using Facebook SSO, it correctly redirects him to portal.xxxxxx.com/web/group/announcements post authentication.Whereas, If I login the user using Facebook, the user is sent to portal.xxxxxx.com/home and not the page that I have set as the default landing page.Do you know why that might be happening and what can I do to ensure that even FB authenticated users go to the same landing page ?Thanks. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Abhay Doshi Hace 13 años hi Abhay, thanks for your feedback. With regards to the post authentication redirect, the Facebook SSO implementation terminates at the auto-login phase within the whole login process. The rest is governed by Liferay's auto-login mechanism. So while there isn't anything the FB SSO feature can add to help with this redirection issue you're having, you may have better luck looking into the auto-login implementation to find the answer. Por favor identifíquese para votar. Contestar como... Cancelar
Gabriel Leon Leyva Wilson Man Hace 13 años in rev 73726 facebook option doesnt work. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Gabriel Leon Leyva Hace 13 años - Editado hi All, I've gotten a chance this morning to test with 6.0.5 and no bug was found. I was able to import my facebook account (and also SSO) into a clean Liferay portal 6.0.5 CE.I've added a few additional notes to my instruction above. For those of you having issues with redirect, make sure your domains are set correctly. On Facebook's side, make sure the Site URL field has the proper port, etc.As for facebook accounts that are not verified, it's simple to verify your account. If you do not want to for whatever reason, you can follow the steps outlined in the comments above to override the verification code on liferay side.Otherwise, Facebook SSO is working fine in 6.0.5 CE. thank you all. Por favor identifíquese para votar. Contestar como... Cancelar Abhay Doshi Wilson Man Hace 13 años Hey Wilson ! Well the issue remains persistent. Here's the scenario:My Facebook redirect URL setting : http://portal.xxxxxx.com/c/login/facebook_connect_oauthLiferay Main configuration:Virtual host : portal.xxxxxx.comDefault landing page : /web/group/announcementsIf I log a user in without using Facebook SSO, it correctly redirects him to portal.xxxxxx.com/web/group/announcements post authentication.Whereas, If I login the user using Facebook, the user is sent to portal.xxxxxx.com/home and not the page that I have set as the default landing page.Do you know why that might be happening and what can I do to ensure that even FB authenticated users go to the same landing page ?Thanks. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Abhay Doshi Hace 13 años hi Abhay, thanks for your feedback. With regards to the post authentication redirect, the Facebook SSO implementation terminates at the auto-login phase within the whole login process. The rest is governed by Liferay's auto-login mechanism. So while there isn't anything the FB SSO feature can add to help with this redirection issue you're having, you may have better luck looking into the auto-login implementation to find the answer. Por favor identifíquese para votar. Contestar como... Cancelar
Wilson Man Gabriel Leon Leyva Hace 13 años - Editado hi All, I've gotten a chance this morning to test with 6.0.5 and no bug was found. I was able to import my facebook account (and also SSO) into a clean Liferay portal 6.0.5 CE.I've added a few additional notes to my instruction above. For those of you having issues with redirect, make sure your domains are set correctly. On Facebook's side, make sure the Site URL field has the proper port, etc.As for facebook accounts that are not verified, it's simple to verify your account. If you do not want to for whatever reason, you can follow the steps outlined in the comments above to override the verification code on liferay side.Otherwise, Facebook SSO is working fine in 6.0.5 CE. thank you all. Por favor identifíquese para votar. Contestar como... Cancelar Abhay Doshi Wilson Man Hace 13 años Hey Wilson ! Well the issue remains persistent. Here's the scenario:My Facebook redirect URL setting : http://portal.xxxxxx.com/c/login/facebook_connect_oauthLiferay Main configuration:Virtual host : portal.xxxxxx.comDefault landing page : /web/group/announcementsIf I log a user in without using Facebook SSO, it correctly redirects him to portal.xxxxxx.com/web/group/announcements post authentication.Whereas, If I login the user using Facebook, the user is sent to portal.xxxxxx.com/home and not the page that I have set as the default landing page.Do you know why that might be happening and what can I do to ensure that even FB authenticated users go to the same landing page ?Thanks. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Abhay Doshi Hace 13 años hi Abhay, thanks for your feedback. With regards to the post authentication redirect, the Facebook SSO implementation terminates at the auto-login phase within the whole login process. The rest is governed by Liferay's auto-login mechanism. So while there isn't anything the FB SSO feature can add to help with this redirection issue you're having, you may have better luck looking into the auto-login implementation to find the answer. Por favor identifíquese para votar. Contestar como... Cancelar
Abhay Doshi Wilson Man Hace 13 años Hey Wilson ! Well the issue remains persistent. Here's the scenario:My Facebook redirect URL setting : http://portal.xxxxxx.com/c/login/facebook_connect_oauthLiferay Main configuration:Virtual host : portal.xxxxxx.comDefault landing page : /web/group/announcementsIf I log a user in without using Facebook SSO, it correctly redirects him to portal.xxxxxx.com/web/group/announcements post authentication.Whereas, If I login the user using Facebook, the user is sent to portal.xxxxxx.com/home and not the page that I have set as the default landing page.Do you know why that might be happening and what can I do to ensure that even FB authenticated users go to the same landing page ?Thanks. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Abhay Doshi Hace 13 años hi Abhay, thanks for your feedback. With regards to the post authentication redirect, the Facebook SSO implementation terminates at the auto-login phase within the whole login process. The rest is governed by Liferay's auto-login mechanism. So while there isn't anything the FB SSO feature can add to help with this redirection issue you're having, you may have better luck looking into the auto-login implementation to find the answer. Por favor identifíquese para votar. Contestar como... Cancelar
Wilson Man Abhay Doshi Hace 13 años hi Abhay, thanks for your feedback. With regards to the post authentication redirect, the Facebook SSO implementation terminates at the auto-login phase within the whole login process. The rest is governed by Liferay's auto-login mechanism. So while there isn't anything the FB SSO feature can add to help with this redirection issue you're having, you may have better luck looking into the auto-login implementation to find the answer. Por favor identifíquese para votar. Contestar como... Cancelar
Zhou Wu Hace 13 años Where does the screenshot in step 2 come from? Is it from facebook site or liferay web portal? Please help. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Zhou Wu Hace 13 años it's on facebook. Por favor identifíquese para votar. Contestar como... Cancelar Zhou Wu Wilson Man Hace 13 años Thanks. However, I just couldn't make it work for me. At some point, it did direct me to facebook page asking for permission when I tested with my facebook account. Now every time I click the facebook button on the login page, it simple returns the original page showing "sign in" page. What could be wrong here? Por favor identifíquese para votar. Contestar como... Cancelar Balázs Jilling Zhou Wu Hace 13 años Same problem here. Por favor identifíquese para votar. Contestar como... Cancelar
Wilson Man Zhou Wu Hace 13 años it's on facebook. Por favor identifíquese para votar. Contestar como... Cancelar Zhou Wu Wilson Man Hace 13 años Thanks. However, I just couldn't make it work for me. At some point, it did direct me to facebook page asking for permission when I tested with my facebook account. Now every time I click the facebook button on the login page, it simple returns the original page showing "sign in" page. What could be wrong here? Por favor identifíquese para votar. Contestar como... Cancelar Balázs Jilling Zhou Wu Hace 13 años Same problem here. Por favor identifíquese para votar. Contestar como... Cancelar
Zhou Wu Wilson Man Hace 13 años Thanks. However, I just couldn't make it work for me. At some point, it did direct me to facebook page asking for permission when I tested with my facebook account. Now every time I click the facebook button on the login page, it simple returns the original page showing "sign in" page. What could be wrong here? Por favor identifíquese para votar. Contestar como... Cancelar Balázs Jilling Zhou Wu Hace 13 años Same problem here. Por favor identifíquese para votar. Contestar como... Cancelar
Balázs Jilling Zhou Wu Hace 13 años Same problem here. Por favor identifíquese para votar. Contestar como... Cancelar
Alexey Davidovich Hace 13 años Hi. On the second screenshot you have Facebook button in authentification section. I have just downloaded liferay-tomcat-portal (version 6.0.5), installed it and in authentification section I have no any facebook button. What is wrong? Can you help me? Thanks. Por favor identifíquese para votar. Contestar como... Cancelar Alexey Davidovich Alexey Davidovich Hace 13 años Problem is solved. I get confused with archives and used earlier version of liferay. I have setup last version of liferay and everything is OK. Por favor identifíquese para votar. Contestar como... Cancelar
Alexey Davidovich Alexey Davidovich Hace 13 años Problem is solved. I get confused with archives and used earlier version of liferay. I have setup last version of liferay and everything is OK. Por favor identifíquese para votar. Contestar como... Cancelar
Gaurav Jain Hace 13 años Hi Wilson,I am getting following error when trying to do facebook login:{code}ERROR [jsp:154] com.liferay.portal.security.auth.PrincipalException: /home?p_auth=TtY5d06h&p_p_id=58&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_58_struts_action=%2Flogin%2Ffacebook_connect&_58_redirect=http%3A%2F%2Fdemo.componence.com%2Fhome%3Bjsessionid%3D41F0CD9814F2575F89983DED0100F5C1%3Fp_p_id%3D58%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-1%26p_p_col_count%3D1%26_58_struts_action%3D%252Flogin%252Ffacebook_connect_add_user at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:164) at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:186) at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70) at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48) at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:652) at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:687) at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:360) at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:768) at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:571) at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:229) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:152) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:508) at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290){code}I am using liferay version ce 6.0.5I added a facebook application.Enabled facebook login and updated add_id,secret_key,redirect_url.Now on login portlet, clicked to facebook login.. redirected to facebook.. allowed my app, back to my portal, clicked add account button. then after it redirected me back to sign in page without making me signed in.And with this exception in the logs.However my user has been added in the users table. Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Gaurav Jain Hace 13 años hey Gaurav, i'll try my best to take a look when I get a chance. sounds like the problem has to do with the auto-login after everything was validated. Por favor identifíquese para votar. Contestar como... Cancelar
Wilson Man Gaurav Jain Hace 13 años hey Gaurav, i'll try my best to take a look when I get a chance. sounds like the problem has to do with the auto-login after everything was validated. Por favor identifíquese para votar. Contestar como... Cancelar
Abhay Doshi Hace 13 años Hey Wilson ! Great tutorial I'm being able to authenticate and log users in (via Facebook) but the default.landing.page.path seems to have become ineffective. I've also set auth.forward.by.last.path to true. But post successful login, I am unable to redirect the user to a page of my choosing. Can you help me here ? Por favor identifíquese para votar. Contestar como... Cancelar
Vaclav Balak Hace 13 años Hi, thanks for this feature!Is it possible to get accessToken in portlet? Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años hi Vaclav, the access token is stored as a HttpSession attribute. You can retrieve it from the HttpSession using this constant: WebKeys.FACEBOOK_ACCESS_TOKEN Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años Hi Wilson, thanks for your reply. I'm trying to get accessToken from session, but without success :-(. What I did and try so far:1) In liferay-portlet.xml I have private-session-attributes set to true for my portlet2) In portal-ext.properties I have session.shared.attributes=FACEBOOK_3) In my controller I tried:HttpServletRequest request = PortalUtil.getHttpServletRequest(portletRequest);request = PortalUtil.getOriginalServletRequest(request);HttpSession session = request.getSession();String token = (String) session.getAttribute(WebKeys.FACEBOOK_ACCESS_TOKEN);andPortletSession session= portletRequest.getPortletSession();String token = (String) session.getAttribute(WebKeys.FACEBOOK_ACCESS_TOKEN, PortletSession.APPLICATION_SCOPE);In both cases is returned token null.Am I missing something?Many thanks in advance! Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años Hi Vaclav,I think you need to add this to your portlet-ext.properties: # # Set a comma delimited list of attribute names that will be copied to the # new session when the property "session.enable.phishing.protection" is set # to true. # session.phishing.protected.attributes=HTTPS_INITIAL,LAST_PATH,FACEBOOK_ACCESS_TOKENThe reason for that additional attribute is that chances are, your session.enable.phishing.protection property is defaulted to true. This means that right after login, the user gets a new session object. Adding the FACEBOOK_ACCESS_TOKEN to the property above would cause that attribute to be copied over to the new session. Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años Hi Wilson, thanks for reply again. I tried to add session.phishing.protected.attributes, but there is still no FACEBOOK_ACCESS_TOKEN in token :-(. I also looked into AttributeNames enumerations inside sessions: - HttpSession AttributeNames is empty - AttributeNames in PortletSession (ApplicationScope) are: LIFERAY_SHARED_AUTHENTICATION_TOKEN, USER_ID, LIFERAY_SHARED_VISITED_GROUP_ID_RECENT, org.apache.struts.action.LOCALE, LIFERAY_SHARED_VISITED_GROUP_ID_PREVIOUS - AttributeNames in PortletSession (PortletScope) is empty Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años hi Vaclav, i haven't gotten a chance to look into that yet. one last thing i would say to check is the portal properties listed in control panel. see if you see the added attribute key there. Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años hi Wilson, in the portal properties in control panel are all defined attributes: session.phishing.protected.attributes HTTPS_INITIAL,LAST_PATH,FACEBOOK_ACCESS_TOKEN and alsosession.shared.attributes FACEBOOK_ACCESS_TOKEN Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años hi Vaclav, got a chance to look into this issue over the weekend, and found that the code that transfers session attributes from old session to new during the login process isn't called when login through the AutoLogin hook/process. I plan to inquire about this internally.In the meantime, if you have more questions, can you start a Message Board thread on this topic? I would rather discuss this there since the MB is more geared towards deeper discussions like this one.again, thanks for bringing this to my attention! Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años - Editado Vaclav, i've gotten a chance to investigate a bit more and we've deemed this to be a bug in the auto-login process. I've gone ahead and created a ticket for it.http://issues.liferay.com/browse/LPS-15895thanks again! Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años I thank you for dealing with that, i'll be watching that ticket and looking forward for solution. Have a nice day! Por favor identifíquese para votar. Contestar como... Cancelar Andreas Kang Vaclav Balak Hace 13 años tryString token = (String)session.getAttribute("FACEBOOK_ACCESS_TOKEN");in jsp and then send it to your action in a hidden field or something.I had the same problem as you and it worked by doing that. Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Andreas Kang Hace 13 años Thanks for tip Andreas, but it's still null :-(. cant be there some problem with listeners? I have both RequestContextListener and ContextLoaderListener defined. Por favor identifíquese para votar. Contestar como... Cancelar
Wilson Man Vaclav Balak Hace 13 años hi Vaclav, the access token is stored as a HttpSession attribute. You can retrieve it from the HttpSession using this constant: WebKeys.FACEBOOK_ACCESS_TOKEN Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años Hi Wilson, thanks for your reply. I'm trying to get accessToken from session, but without success :-(. What I did and try so far:1) In liferay-portlet.xml I have private-session-attributes set to true for my portlet2) In portal-ext.properties I have session.shared.attributes=FACEBOOK_3) In my controller I tried:HttpServletRequest request = PortalUtil.getHttpServletRequest(portletRequest);request = PortalUtil.getOriginalServletRequest(request);HttpSession session = request.getSession();String token = (String) session.getAttribute(WebKeys.FACEBOOK_ACCESS_TOKEN);andPortletSession session= portletRequest.getPortletSession();String token = (String) session.getAttribute(WebKeys.FACEBOOK_ACCESS_TOKEN, PortletSession.APPLICATION_SCOPE);In both cases is returned token null.Am I missing something?Many thanks in advance! Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años Hi Vaclav,I think you need to add this to your portlet-ext.properties: # # Set a comma delimited list of attribute names that will be copied to the # new session when the property "session.enable.phishing.protection" is set # to true. # session.phishing.protected.attributes=HTTPS_INITIAL,LAST_PATH,FACEBOOK_ACCESS_TOKENThe reason for that additional attribute is that chances are, your session.enable.phishing.protection property is defaulted to true. This means that right after login, the user gets a new session object. Adding the FACEBOOK_ACCESS_TOKEN to the property above would cause that attribute to be copied over to the new session. Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años Hi Wilson, thanks for reply again. I tried to add session.phishing.protected.attributes, but there is still no FACEBOOK_ACCESS_TOKEN in token :-(. I also looked into AttributeNames enumerations inside sessions: - HttpSession AttributeNames is empty - AttributeNames in PortletSession (ApplicationScope) are: LIFERAY_SHARED_AUTHENTICATION_TOKEN, USER_ID, LIFERAY_SHARED_VISITED_GROUP_ID_RECENT, org.apache.struts.action.LOCALE, LIFERAY_SHARED_VISITED_GROUP_ID_PREVIOUS - AttributeNames in PortletSession (PortletScope) is empty Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años hi Vaclav, i haven't gotten a chance to look into that yet. one last thing i would say to check is the portal properties listed in control panel. see if you see the added attribute key there. Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años hi Wilson, in the portal properties in control panel are all defined attributes: session.phishing.protected.attributes HTTPS_INITIAL,LAST_PATH,FACEBOOK_ACCESS_TOKEN and alsosession.shared.attributes FACEBOOK_ACCESS_TOKEN Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años hi Vaclav, got a chance to look into this issue over the weekend, and found that the code that transfers session attributes from old session to new during the login process isn't called when login through the AutoLogin hook/process. I plan to inquire about this internally.In the meantime, if you have more questions, can you start a Message Board thread on this topic? I would rather discuss this there since the MB is more geared towards deeper discussions like this one.again, thanks for bringing this to my attention! Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años - Editado Vaclav, i've gotten a chance to investigate a bit more and we've deemed this to be a bug in the auto-login process. I've gone ahead and created a ticket for it.http://issues.liferay.com/browse/LPS-15895thanks again! Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años I thank you for dealing with that, i'll be watching that ticket and looking forward for solution. Have a nice day! Por favor identifíquese para votar. Contestar como... Cancelar Andreas Kang Vaclav Balak Hace 13 años tryString token = (String)session.getAttribute("FACEBOOK_ACCESS_TOKEN");in jsp and then send it to your action in a hidden field or something.I had the same problem as you and it worked by doing that. Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Andreas Kang Hace 13 años Thanks for tip Andreas, but it's still null :-(. cant be there some problem with listeners? I have both RequestContextListener and ContextLoaderListener defined. Por favor identifíquese para votar. Contestar como... Cancelar
Vaclav Balak Wilson Man Hace 13 años Hi Wilson, thanks for your reply. I'm trying to get accessToken from session, but without success :-(. What I did and try so far:1) In liferay-portlet.xml I have private-session-attributes set to true for my portlet2) In portal-ext.properties I have session.shared.attributes=FACEBOOK_3) In my controller I tried:HttpServletRequest request = PortalUtil.getHttpServletRequest(portletRequest);request = PortalUtil.getOriginalServletRequest(request);HttpSession session = request.getSession();String token = (String) session.getAttribute(WebKeys.FACEBOOK_ACCESS_TOKEN);andPortletSession session= portletRequest.getPortletSession();String token = (String) session.getAttribute(WebKeys.FACEBOOK_ACCESS_TOKEN, PortletSession.APPLICATION_SCOPE);In both cases is returned token null.Am I missing something?Many thanks in advance! Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años Hi Vaclav,I think you need to add this to your portlet-ext.properties: # # Set a comma delimited list of attribute names that will be copied to the # new session when the property "session.enable.phishing.protection" is set # to true. # session.phishing.protected.attributes=HTTPS_INITIAL,LAST_PATH,FACEBOOK_ACCESS_TOKENThe reason for that additional attribute is that chances are, your session.enable.phishing.protection property is defaulted to true. This means that right after login, the user gets a new session object. Adding the FACEBOOK_ACCESS_TOKEN to the property above would cause that attribute to be copied over to the new session. Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años Hi Wilson, thanks for reply again. I tried to add session.phishing.protected.attributes, but there is still no FACEBOOK_ACCESS_TOKEN in token :-(. I also looked into AttributeNames enumerations inside sessions: - HttpSession AttributeNames is empty - AttributeNames in PortletSession (ApplicationScope) are: LIFERAY_SHARED_AUTHENTICATION_TOKEN, USER_ID, LIFERAY_SHARED_VISITED_GROUP_ID_RECENT, org.apache.struts.action.LOCALE, LIFERAY_SHARED_VISITED_GROUP_ID_PREVIOUS - AttributeNames in PortletSession (PortletScope) is empty Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años hi Vaclav, i haven't gotten a chance to look into that yet. one last thing i would say to check is the portal properties listed in control panel. see if you see the added attribute key there. Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años hi Wilson, in the portal properties in control panel are all defined attributes: session.phishing.protected.attributes HTTPS_INITIAL,LAST_PATH,FACEBOOK_ACCESS_TOKEN and alsosession.shared.attributes FACEBOOK_ACCESS_TOKEN Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años hi Vaclav, got a chance to look into this issue over the weekend, and found that the code that transfers session attributes from old session to new during the login process isn't called when login through the AutoLogin hook/process. I plan to inquire about this internally.In the meantime, if you have more questions, can you start a Message Board thread on this topic? I would rather discuss this there since the MB is more geared towards deeper discussions like this one.again, thanks for bringing this to my attention! Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años - Editado Vaclav, i've gotten a chance to investigate a bit more and we've deemed this to be a bug in the auto-login process. I've gone ahead and created a ticket for it.http://issues.liferay.com/browse/LPS-15895thanks again! Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años I thank you for dealing with that, i'll be watching that ticket and looking forward for solution. Have a nice day! Por favor identifíquese para votar. Contestar como... Cancelar Andreas Kang Vaclav Balak Hace 13 años tryString token = (String)session.getAttribute("FACEBOOK_ACCESS_TOKEN");in jsp and then send it to your action in a hidden field or something.I had the same problem as you and it worked by doing that. Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Andreas Kang Hace 13 años Thanks for tip Andreas, but it's still null :-(. cant be there some problem with listeners? I have both RequestContextListener and ContextLoaderListener defined. Por favor identifíquese para votar. Contestar como... Cancelar
Wilson Man Vaclav Balak Hace 13 años Hi Vaclav,I think you need to add this to your portlet-ext.properties: # # Set a comma delimited list of attribute names that will be copied to the # new session when the property "session.enable.phishing.protection" is set # to true. # session.phishing.protected.attributes=HTTPS_INITIAL,LAST_PATH,FACEBOOK_ACCESS_TOKENThe reason for that additional attribute is that chances are, your session.enable.phishing.protection property is defaulted to true. This means that right after login, the user gets a new session object. Adding the FACEBOOK_ACCESS_TOKEN to the property above would cause that attribute to be copied over to the new session. Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años Hi Wilson, thanks for reply again. I tried to add session.phishing.protected.attributes, but there is still no FACEBOOK_ACCESS_TOKEN in token :-(. I also looked into AttributeNames enumerations inside sessions: - HttpSession AttributeNames is empty - AttributeNames in PortletSession (ApplicationScope) are: LIFERAY_SHARED_AUTHENTICATION_TOKEN, USER_ID, LIFERAY_SHARED_VISITED_GROUP_ID_RECENT, org.apache.struts.action.LOCALE, LIFERAY_SHARED_VISITED_GROUP_ID_PREVIOUS - AttributeNames in PortletSession (PortletScope) is empty Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años hi Vaclav, i haven't gotten a chance to look into that yet. one last thing i would say to check is the portal properties listed in control panel. see if you see the added attribute key there. Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años hi Wilson, in the portal properties in control panel are all defined attributes: session.phishing.protected.attributes HTTPS_INITIAL,LAST_PATH,FACEBOOK_ACCESS_TOKEN and alsosession.shared.attributes FACEBOOK_ACCESS_TOKEN Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años hi Vaclav, got a chance to look into this issue over the weekend, and found that the code that transfers session attributes from old session to new during the login process isn't called when login through the AutoLogin hook/process. I plan to inquire about this internally.In the meantime, if you have more questions, can you start a Message Board thread on this topic? I would rather discuss this there since the MB is more geared towards deeper discussions like this one.again, thanks for bringing this to my attention! Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años - Editado Vaclav, i've gotten a chance to investigate a bit more and we've deemed this to be a bug in the auto-login process. I've gone ahead and created a ticket for it.http://issues.liferay.com/browse/LPS-15895thanks again! Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años I thank you for dealing with that, i'll be watching that ticket and looking forward for solution. Have a nice day! Por favor identifíquese para votar. Contestar como... Cancelar Andreas Kang Vaclav Balak Hace 13 años tryString token = (String)session.getAttribute("FACEBOOK_ACCESS_TOKEN");in jsp and then send it to your action in a hidden field or something.I had the same problem as you and it worked by doing that. Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Andreas Kang Hace 13 años Thanks for tip Andreas, but it's still null :-(. cant be there some problem with listeners? I have both RequestContextListener and ContextLoaderListener defined. Por favor identifíquese para votar. Contestar como... Cancelar
Vaclav Balak Wilson Man Hace 13 años Hi Wilson, thanks for reply again. I tried to add session.phishing.protected.attributes, but there is still no FACEBOOK_ACCESS_TOKEN in token :-(. I also looked into AttributeNames enumerations inside sessions: - HttpSession AttributeNames is empty - AttributeNames in PortletSession (ApplicationScope) are: LIFERAY_SHARED_AUTHENTICATION_TOKEN, USER_ID, LIFERAY_SHARED_VISITED_GROUP_ID_RECENT, org.apache.struts.action.LOCALE, LIFERAY_SHARED_VISITED_GROUP_ID_PREVIOUS - AttributeNames in PortletSession (PortletScope) is empty Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años hi Vaclav, i haven't gotten a chance to look into that yet. one last thing i would say to check is the portal properties listed in control panel. see if you see the added attribute key there. Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años hi Wilson, in the portal properties in control panel are all defined attributes: session.phishing.protected.attributes HTTPS_INITIAL,LAST_PATH,FACEBOOK_ACCESS_TOKEN and alsosession.shared.attributes FACEBOOK_ACCESS_TOKEN Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años hi Vaclav, got a chance to look into this issue over the weekend, and found that the code that transfers session attributes from old session to new during the login process isn't called when login through the AutoLogin hook/process. I plan to inquire about this internally.In the meantime, if you have more questions, can you start a Message Board thread on this topic? I would rather discuss this there since the MB is more geared towards deeper discussions like this one.again, thanks for bringing this to my attention! Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años - Editado Vaclav, i've gotten a chance to investigate a bit more and we've deemed this to be a bug in the auto-login process. I've gone ahead and created a ticket for it.http://issues.liferay.com/browse/LPS-15895thanks again! Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años I thank you for dealing with that, i'll be watching that ticket and looking forward for solution. Have a nice day! Por favor identifíquese para votar. Contestar como... Cancelar Andreas Kang Vaclav Balak Hace 13 años tryString token = (String)session.getAttribute("FACEBOOK_ACCESS_TOKEN");in jsp and then send it to your action in a hidden field or something.I had the same problem as you and it worked by doing that. Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Andreas Kang Hace 13 años Thanks for tip Andreas, but it's still null :-(. cant be there some problem with listeners? I have both RequestContextListener and ContextLoaderListener defined. Por favor identifíquese para votar. Contestar como... Cancelar
Wilson Man Vaclav Balak Hace 13 años hi Vaclav, i haven't gotten a chance to look into that yet. one last thing i would say to check is the portal properties listed in control panel. see if you see the added attribute key there. Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años hi Wilson, in the portal properties in control panel are all defined attributes: session.phishing.protected.attributes HTTPS_INITIAL,LAST_PATH,FACEBOOK_ACCESS_TOKEN and alsosession.shared.attributes FACEBOOK_ACCESS_TOKEN Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años hi Vaclav, got a chance to look into this issue over the weekend, and found that the code that transfers session attributes from old session to new during the login process isn't called when login through the AutoLogin hook/process. I plan to inquire about this internally.In the meantime, if you have more questions, can you start a Message Board thread on this topic? I would rather discuss this there since the MB is more geared towards deeper discussions like this one.again, thanks for bringing this to my attention! Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años - Editado Vaclav, i've gotten a chance to investigate a bit more and we've deemed this to be a bug in the auto-login process. I've gone ahead and created a ticket for it.http://issues.liferay.com/browse/LPS-15895thanks again! Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años I thank you for dealing with that, i'll be watching that ticket and looking forward for solution. Have a nice day! Por favor identifíquese para votar. Contestar como... Cancelar
Vaclav Balak Wilson Man Hace 13 años hi Wilson, in the portal properties in control panel are all defined attributes: session.phishing.protected.attributes HTTPS_INITIAL,LAST_PATH,FACEBOOK_ACCESS_TOKEN and alsosession.shared.attributes FACEBOOK_ACCESS_TOKEN Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años hi Vaclav, got a chance to look into this issue over the weekend, and found that the code that transfers session attributes from old session to new during the login process isn't called when login through the AutoLogin hook/process. I plan to inquire about this internally.In the meantime, if you have more questions, can you start a Message Board thread on this topic? I would rather discuss this there since the MB is more geared towards deeper discussions like this one.again, thanks for bringing this to my attention! Por favor identifíquese para votar. Contestar como... Cancelar Wilson Man Vaclav Balak Hace 13 años - Editado Vaclav, i've gotten a chance to investigate a bit more and we've deemed this to be a bug in the auto-login process. I've gone ahead and created a ticket for it.http://issues.liferay.com/browse/LPS-15895thanks again! Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años I thank you for dealing with that, i'll be watching that ticket and looking forward for solution. Have a nice day! Por favor identifíquese para votar. Contestar como... Cancelar
Wilson Man Vaclav Balak Hace 13 años hi Vaclav, got a chance to look into this issue over the weekend, and found that the code that transfers session attributes from old session to new during the login process isn't called when login through the AutoLogin hook/process. I plan to inquire about this internally.In the meantime, if you have more questions, can you start a Message Board thread on this topic? I would rather discuss this there since the MB is more geared towards deeper discussions like this one.again, thanks for bringing this to my attention! Por favor identifíquese para votar. Contestar como... Cancelar
Wilson Man Vaclav Balak Hace 13 años - Editado Vaclav, i've gotten a chance to investigate a bit more and we've deemed this to be a bug in the auto-login process. I've gone ahead and created a ticket for it.http://issues.liferay.com/browse/LPS-15895thanks again! Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Wilson Man Hace 13 años I thank you for dealing with that, i'll be watching that ticket and looking forward for solution. Have a nice day! Por favor identifíquese para votar. Contestar como... Cancelar
Vaclav Balak Wilson Man Hace 13 años I thank you for dealing with that, i'll be watching that ticket and looking forward for solution. Have a nice day! Por favor identifíquese para votar. Contestar como... Cancelar
Andreas Kang Vaclav Balak Hace 13 años tryString token = (String)session.getAttribute("FACEBOOK_ACCESS_TOKEN");in jsp and then send it to your action in a hidden field or something.I had the same problem as you and it worked by doing that. Por favor identifíquese para votar. Contestar como... Cancelar Vaclav Balak Andreas Kang Hace 13 años Thanks for tip Andreas, but it's still null :-(. cant be there some problem with listeners? I have both RequestContextListener and ContextLoaderListener defined. Por favor identifíquese para votar. Contestar como... Cancelar
Vaclav Balak Andreas Kang Hace 13 años Thanks for tip Andreas, but it's still null :-(. cant be there some problem with listeners? I have both RequestContextListener and ContextLoaderListener defined. Por favor identifíquese para votar. Contestar como... Cancelar