URL blockedURL blockedhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1191720642024-03-28T09:41:03Z2024-03-28T09:41:03ZRE: URL blockedpradip choudharihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1192111922020-05-21T11:17:29Z2020-05-21T11:17:29ZHi Mohammed sir , <br /><br />Thanks for the suggestion . <br />I shared issue on facebook forum .<br /><br />Thanks & Regards , <br />Pradippradip choudhari2020-05-21T11:17:29ZRE: URL blockedMohammed Yasinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1192108432020-05-21T10:58:23Z2020-05-21T10:58:23ZHi ,<br />I see that facebook is not redirecting back or not whitelisting the domain u have configured , so i don't think this has anything to do with Liferay Portal , May be you can check or post here <a href="https://developers.facebook.com/community/">https://developers.facebook.com/community/</a>Mohammed Yasin2020-05-21T10:58:23ZRE: URL blockedpradip choudharihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1192104762020-05-21T10:44:02Z2020-05-21T10:44:02ZHey all , <br /><br />I am trying integration from last 5 days , but since I not get correct result , If anyone know please give some suggestions , which configuration I am missing ?<br /><br /><br />Thanks & Regards , <br />Pradip pradip choudhari2020-05-21T10:44:02ZRE: URL blockedpradip choudharihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1192025102020-05-20T11:10:46Z2020-05-20T11:10:46Z<html><head></head><body>Hey all , <br><br>I updated some configuration to avoid above URL blocked url error , and now getting <br><br><pre><code>"Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings."</code></pre>I tried some answers of stackoverflow and other documnets , but not worked for this new error .<br><br>and this error also pointing to redirection url process of facebook , so can anyone know where I am doing mistake ? <br>which redirection url , i can try while configuring facebook in liferay : <br>Now , I am using below redirect URL <br>https://localiticourses.buildyourcareerpath.com:8443/c<strong>/portal/facebook_connect_oauth </strong><br><br>I updated <strong>OAuth Authentication URL : <br>https://graph.facebook.com/oauth/authorize ( getting can't load url error message )<br><br>previously i was used OAuth Authentication URL : <br><a href="https://www.facebook.com/v7.0/dialog/oauth">https://www.facebook.com/v7.0/dialog/oauth</a> (getting URL blocked error message )<br></strong><br><br>Thanks & Regards , <br>Pradip</body></html>pradip choudhari2020-05-20T11:10:46ZRE: URL blockedpradip choudharihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191924582020-05-19T12:41:27Z2020-05-19T12:41:27ZHi Developers , <br /><br />when we click facebook link in liferay portal , internally it will create user that time it will use <strong>FacebookConnectStrutsAction</strong>.java class internally . so based on this reference I mentioned in callback url is : https://localiticourses.buildyourcareerpath.com:8443<strong>/c/portal/facebook_connect_oauth </strong><br /><br /><table><tr><td>@Component(</td></tr><tr><td></td><td>immediate = true,</td></tr><tr><td></td><td>property = {</td></tr><tr><td></td><td>"/common/referer_jsp.jsp=/common/referer_jsp.jsp",</td></tr><tr><td></td><td>"path=<strong>/portal/facebook_connect_oauth</strong>"</td></tr><tr><td></td><td>},</td></tr><tr><td></td><td>service = StrutsAction.class</td></tr><tr><td></td><td>)</td></tr><tr><td></td><td>public class FacebookConnectStrutsAction implements StrutsAction {</td></tr></table> <br /> // user insertion code }<br />But not get success still . facing URL blocked error again <br />Can anyone give suggestion , where i am doing mistake ?<br /><br />Thanks & Regards , <br />Pradippradip choudhari2020-05-19T12:41:27ZRE: URL blockedpradip choudharihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191898372020-05-19T06:18:43Z2020-05-19T06:18:43ZHi Developers ,<br />Is anyone faced this issue , still I am not able to get correct redirection URL<br /><br />I tried all below urls as up now :<br />https://localiticourses.buildyourcareerpath.com:8443/c/login/facebook_connect_oauth<br />https://localiticourses.buildyourcareerpath.com:8443/c/portal/facebook_connect_oauth<br />https://localiticourses.buildyourcareerpath.com:8443/signin-facebook<br />https://localiticourses.buildyourcareerpath.com:8443/auth/facebook/callback<br />https://localiticourses.buildyourcareerpath.com:8443/facebook/callback<br />https://localiticourses.buildyourcareerpath.com:8443/c/portal/facebook_social_login<br />https://localiticourses.buildyourcareerpath.com:8443/accounts/facebook/login/callback/<br /><br />and tried below properties in my portal file -<br />redirect.url.security.mode=domain<br />redirect.url.domains.allowed=localiticourses.buildyourcareerpath.com<br /><br />If anyone implemented facebook in liferay , give me some guidance..<br /><br />Thanks & Regards ,<br />Pradippradip choudhari2020-05-19T06:18:43ZRE: URL blockedpradip choudharihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191842962020-05-18T15:59:44Z2020-05-18T15:59:44Z<p>Hi&nbsp;Stian sir<strong> ,&nbsp;</strong><br /><br /><br /><br />Thanks for the suggestion.<br /><br /><br /><br />I validated the redirect url and getting success message for the url .<br /><br /><br /><br />Thanks &amp; Regards ,&nbsp;<br /><br />Pradip</p>pradip choudhari2020-05-18T15:59:44ZRE: URL blockedStian Sigvartsenhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191835592020-05-18T15:26:16Z2020-05-18T15:26:16ZHi Pradip. Have you tried validating your Redirect URL using the tool that Facebook provides? You should find the tool under <br />[Your Facebook application] > Facebook Login > Settings<br />Then at the bottom of the page you'll find "Redirect URI Validator"<br /><br />To be clear, you should validate the following URL: <a href="https://localiticourses.buildyourcareerpath.com:8443/c/login/facebook_connect_oauth">https://localiticourses.buildyourcareerpath.com:8443/c/login/facebook_connect_oauth</a>Stian Sigvartsen2020-05-18T15:26:16ZRE: URL blockedpradip choudharihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191821152020-05-18T12:18:46Z2020-05-18T12:18:46ZHi Mohammed Sir , <br /><br />I updated properties file , But still same issue facing . <br /><br />and after clicking facebook link also getting url is same as previous : <br /><br /><a href="https://www.facebook.com/v7.0/dialog/oauth?client_id=1336645373391443&redirect_uri=https%3A%2F%2Flocaliticourses.buildyourcareerpath.com%3A8443%2Fc%2Flogin%2Ffacebook_connect_oauth%3Fredirect%3Dhttps%253A%252F%252Flocaliticourses.buildyourcareerpath.com%253A8443%252Fhome%253Fp_p_id%253Dcom_liferay_login_web_portlet_LoginPortlet%2526p_p_lifecycle%253D0%2526p_p_state%253Dpop_up%2526p_p_mode%253Dview%2526_com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName%253D%25252Flogin%25252Flogin_redirect%2526p_p_auth%253DTGOkpx5i&scope=email">https://www.facebook.com/v7.0/dialog/oauth?client_id=1336645373391443&redirect_uri=https%3A%2F%2Flocaliticourses.buildyourcareerpath.com%3A8443%2Fc%2Flogin%2Ffacebook_connect_oauth%3Fredirect%3Dhttps%253A%252F%252Flocaliticourses.buildyourcareerpath.com%253A8443%252Fhome%253Fp_p_id%253Dcom_liferay_login_web_portlet_LoginPortlet%2526p_p_lifecycle%253D0%2526p_p_state%253Dpop_up%2526p_p_mode%253Dview%2526_com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName%253D%25252Flogin%25252Flogin_redirect%2526p_p_auth%253DTGOkpx5i&scope=email</a><br /><br />Inside fb Valid OAuth Redirect URIs : <br />https://localiticourses.buildyourcareerpath.com:8443/c/login/facebook_connect_oauth<br /><br />and In liferay fb setting <strong>Redirect URL :<br /></strong>https://localiticourses.buildyourcareerpath.com:8443/c/login/facebook_connect_oauth<br /><br />I am configured same urls , is anything I missed there .<br />Thanks & Regards , <br />Pradip pradip choudhari2020-05-18T12:18:46ZRE: URL blockedpradip choudharihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191817682020-05-18T11:54:00Z2020-05-18T11:54:00Z<div class="quote-title">Mohammed Yasin:</div><blockquote><br />In your case, as your using domain you need to set as belowredirect.url.security.mode=domain<br />redirect.url.domains.allowed=localiticourses.buildyourcareerpath.com</blockquote><br />Hi Mohammed sir , <br /><br />sorry for mistake .. Can I try like below property <strong>redirect.url.security.mode=domain<br />redirect.url.domains.allowed=localiticourses.buildyourcareerpath.com<br />redirect.url.ips.allowed=127.0.0.1,SERVER_IP<br /><br /></strong>Thanks & Regards, <br />Pradip<strong></strong><strong></strong>pradip choudhari2020-05-18T11:54:00ZRE: URL blockedMohammed Yasinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191814082020-05-18T11:51:17Z2020-05-18T11:51:17ZIn your case, as your using domain you need to set as belowredirect.url.security.mode=domain<br />redirect.url.domains.allowed=localiticourses.buildyourcareerpath.comMohammed Yasin2020-05-18T11:51:17ZRE: URL blockedpradip choudharihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191810612020-05-18T11:44:13Z2020-05-18T11:44:13ZHi Mohammed sir , <br /><br />I tried below 3 property in my portal file <br />redirect.url.security.mode=ip<br />redirect.url.domains.allowed=<br />redirect.url.ips.allowed=127.0.0.1,SERVER_IP<br /><br />but it not worked , after clicking facebook link getting URL blocked same like previous <br /><br />Thanks & Regards , <br />Pradippradip choudhari2020-05-18T11:44:13ZRE: URL blockedMohammed Yasinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191807152020-05-18T11:36:57Z2020-05-18T11:36:57ZYes you can add those properties and try Mohammed Yasin2020-05-18T11:36:57ZRE: URL blockedpradip choudharihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191803662020-05-18T11:24:37Z2020-05-18T11:24:37ZHi Mohammed sir , <br /><br />My actual url is http://localiticourses.buildyourcareerpath.com this one .. just above I mentioned as localhost . <br /><br /><br />Before integrating fb in my local environment , I converted http request to https req. , Because I seen In FB document - they not allowing http req. in development mode also from 2018 . <br /> But I not added any properties in liferay portal , may I add above properties in liferay portal file<br />Thanks & regards , <br />Pradippradip choudhari2020-05-18T11:24:37ZRE: URL blockedMohammed Yasinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191800162020-05-18T11:03:07Z2020-05-18T11:03:07Z<html><head></head><body>Your call back url is http://localiticourses.buildyourcareerpath.com right and i assume that u have configured this in facebook app setting and not localhost:8443 ?<br><br>also have u added below properties in your liferay portal , i guess it should not impact facebook to redirect back but you can give it try<br><br><pre><code>[code]# Set this property to "ip" or "domain" for the redirect security method. If
# set to "domain", the portal will only redirect users to domains listed in
# the property "redirect.url.domain.allowed". If set to "ip", the portal
# will only redirect to domains whose IP address resolve to an IP address
# listed in the property "redirect.url.ip.allowed".
#
# Env: LIFERAY_REDIRECT_PERIOD_URL_PERIOD_SECURITY_PERIOD_MODE
#
#redirect.url.security.mode=domain
redirect.url.security.mode=ip
#
# Input a list of comma delimited domains which the portal is allowed to
# redirect to. Input a blank list to allow any domain. Specifying a domain
# with a leading "*." allows redirects to subdomains.
#
# Env: LIFERAY_REDIRECT_PERIOD_URL_PERIOD_DOMAINS_PERIOD_ALLOWED
#
redirect.url.domains.allowed=
#
# Input a list of comma delimited IPs which the portal is allowed to
# redirect to. Input a blank list to allow any IP. SERVER_IP will be
# replaced with the IP of the host server.
#
# Env: LIFERAY_REDIRECT_PERIOD_URL_PERIOD_IPS_PERIOD_ALLOWED
#
redirect.url.ips.allowed=127.0.0.1,SERVER_IP</code></pre></body></html>Mohammed Yasin2020-05-18T11:03:07ZRE: URL blockedpradip choudharihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191769562020-05-18T10:24:20Z2020-05-18T10:24:20ZHi Mohmmad sir , <br />You have any other alternates ? I will try <br /><br />Thanks & Regards, <br />Pradippradip choudhari2020-05-18T10:24:20ZRE: URL blockedpradip choudharihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191758452020-05-18T08:48:52Z2020-05-18T08:48:52ZHi Mohmmad sir , <br />Thanks for always giving valuable suggestions.<br /><br />I gone through that link previously also , and checked each schenerio But not worked in my case . <br />I tried all below callback redirect URL (mapped in liferay setting facebook configuration and facebook developer settings in facebook app ): <br /><a href="https://localhost:8443/c/login/facebook_connect_oauth/">https://localhost:8443/c/login/facebook_connect_oauth/</a><a href="https://localhost:8443/c/portal/facebook_social_login"></a><br /><a href="https://localhost:8443/c/portal/facebook_social_login">https://localhost:8443/c/portal/facebook_social_login</a><br />https://localhost:8443/signin-facebook<br />https://localhost:8443/auth/facebook/callback<br />https://localhost:8443/facebook/callback<br /><br />but not worked any of the URL . <br />You have any other solution sir ? I am thinking issue is with redirection URL only <br /><br />Thanks & Regards , <br />Pradip pradip choudhari2020-05-18T08:48:52ZRE: URL blockedMohammed Yasinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191728182020-05-18T08:10:59Z2020-05-18T08:10:59ZHi ,<br />May be below link help you<br /><a href="https://stackoverflow.com/questions/37001004/facebook-login-message-url-blocked-this-redirect-failed-because-the-redirect">https://stackoverflow.com/questions/37001004/facebook-login-message-url-blocked-this-redirect-failed-because-the-redirect</a>Mohammed Yasin2020-05-18T08:10:59ZURL blockedpradip choudharihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191720632020-05-18T07:46:37Z2020-05-18T07:46:37ZHi Team , <br />I am integrating Facebook app with liferay . for that I created app in facebook and get app Id and secret key and configured in Liferay FB configuration setting . <br /><br /><strong>Application ID : ************** , Application Secret : *************,<br />Graph URL : <a href="https://graph.facebook.com">https://graph.facebook.com</a></strong><a href="https://graph.facebook.com"><br /></a><strong>OAuth Authentication URL:<br /></strong><a href="https://www.facebook.com/v7.0/dialog/oauth">https://www.facebook.com/v7.0/dialog/oauth</a><br /><a href="https://www.facebook.com/v7.0/dialog/oauth"></a><strong>OAuth Token URL : <a href="https://graph.facebook.com/oauth/access_token">https://graph.facebook.com/oauth/access_token<br /></a>Redirect URL : <a href="https://localiticourses.buildyourcareerpath.com:8443/c/login/facebook_connect_oauth">https://localhost:8443/c/login/facebook_connect_oauth </a></strong><a href="https://localiticourses.buildyourcareerpath.com:8443/c/login/facebook_connect_oauth"> </a><a href="https://localiticourses.buildyourcareerpath.com:8443/c/login/facebook_connect_oauth"><br /></a>and inside facebook app - Valid OAuth Redirect URIs I used same URL for redirection is : <strong><a href="https://localiticourses.buildyourcareerpath.com:8443/c/login/facebook_connect_oauth">https://localhost:8443/c/login/facebook_connect_oauth </a></strong><br />But whenever I am clicking facebook link , I am getting URL blocked error only , so that user not adding in User_ table <br /><br /><strong>after click facbook generating URL also I am adding here : <br /></strong><a href="https://www.facebook.com/v7.0/dialog/oauth?client_id=1336645373391443&redirect_uri=https%3A%2F%2Flocaliticourses.buildyourcareerpath.com%3A8443%2Fc%2Flogin%2Ffacebook_connect_oauth%3Fredirect%3Dhttps%253A%252F%252Flocaliticourses.buildyourcareerpath.com%253A8443%252Fwelcome%253Fp_p_id%253Dcom_liferay_lo