Problem while creating connection to OAuth 2.0 | Community
Skip to main content
VINAYAKS
October 16, 2015
Solved

Problem while creating connection to OAuth 2.0

  • October 16, 2015
  • 6 replies
  • 3374 views

Hi Folks,

Thanks in anticipation.

I am working on South African network, my objective is to pull the profile details from facebook and twitter, so I have created the appId in both facebook and twitter, then configured in AEM cloud services.

I am able to pull the facebook profile details with Indian network but not in South African network and getting following error message.

com.adobe.granite.auth.oauth.impl.oauth2.Oauth2Helper There was a problem while creating a connection to the remote service.
org.scribe.exceptions.OAuthConnectionException: There was a problem while creating a connection to the remote service.
    at org.scribe.model.Request.send(Request.java:70)
    at org.scribe.model.Request.send(Request.java:76)

Kindly requesting you people to check and advise asap.

And also please explain how OAuth works ?

 

Thanks & Regards,

Vinayak S

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Shivalingaiah

Hi Vinayak,

It might be a firewall issue and please do check with your IS team for connecting with South African Network

You can refer [1] to understand the flow on OAuth authentication

[1] http://tutorials.jenkov.com/oauth2/overview.html

6 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
October 16, 2015

Hi Vinayak,

It might be a firewall issue and please do check with your IS team for connecting with South African Network

You can refer [1] to understand the flow on OAuth authentication

[1] http://tutorials.jenkov.com/oauth2/overview.html

Sham_HC
October 16, 2015

bsloki wrote...

Hi Vinayak,

It might be a firewall issue and please do check with your IS team for connecting with South African Network

You can refer [1] to understand the flow on OAuth authentication

[1] http://tutorials.jenkov.com/oauth2/overview.html

 

plus http://dev.day.com/content/ddc/en/gems/oauth-server-functionality-in-aem---embrace-federation-and-unlea.html

VINAYAKS
VINAYAKSAuthor
October 16, 2015

Hi bsoki,

Good day !!

Still I am facing the issue.

Please note that I have created the facebook appId in my facebook profile. 

Even I am receiving "authorisation code" from facebook and while accessing facebook profile details, I am passing the facebook appId, secret Id and authorization code in following url.

https://graph.facebook.com/oauth/access_token?client_id=271371219730907&client_secret=2df418027c53025f871d04cb6f4ad958&code=AQDrH0MGoBZPWHu0jJRw48vIR9ePjMu1iZYNGkqsEEV3VqSnZn0Ps3CQns51gmizi4l6CbP4zjoQnDXKKkErOp0SJIs5q81l8VTEqgn1qfPwzPX6FGj0ommkAvFAq1Z5Kjwd7jAT2dSt2qBJ83Pc3DYEVmYA7V6dEPh1bxZoKtN4zRZ4dYk3OYnYh7OAbyDjwNbq0QOJdVqp4Bp8i8AXtns_oIrOXOtIaSwrCgleiAEut4OrpUI8aSHOGp-LLB4XiHK3ZYW9WDc-ePcu6EQuqCS4kw0W2vnjoz7gapok7Uv41q8tBN08RaUOZuAR48PBLQA&state=sjvobr8vvb85madgrt3g3ng7i3&redirect_uri=http%3A%2F%2Flocalhost%3A4502%2Fetc%2Fcloudservices%2Ffacebookconnect%2FNedbankFBConnect_Tinu.login.html%2Fcallback%2Fconnect&scope=user_about_me%2Cuser_birthday%2Cuser_education_history%2Cemail%2Cuser_hometown%2Cuser_interests%2Cuser_likes%2Cuser_location%2Cuser_work_history&state=aechgo05jttfgc7407u3m92shv

 

I have tried following ways.

1. According to you it might be firewall issue. But in AEM 6.0 I have created sample sling servlet example and in that I am able to redirect to facebook and google (means servlet code running on JVM able to redirect to social sites).

2. Currently I am working on South African network and not able to pull profile details with this but I am able to pull profile details with Indian network. So I thought it might be proxy issue, so I have set up the proxy in AEM 6.0 JVM and tried then also I am not able to pull facebook profile details.

Please check and advise asap.

 

Thanks & Regards,

Vinayak S

mads_hvidberg
October 16, 2015

Had the same problem, but thanks to your answers, I found the solution.

Happy new year to you all!

VINAYAKS
VINAYAKSAuthor
October 16, 2015

Hi Mads Hvidberg,

How you resolve the issue man ? still I am facing the issue.

Could you please help.

 

Thanks & Regards,

Vinayak S

VINAYAKS
VINAYAKSAuthor
October 16, 2015

Hello everyone,

Thanks in anticipation.

As per my understanding, in a Indian network I am able to get a "access token" from OAuth server which is sitting in Facebook server.

But while requesting "access token" to OAuth server in South African network it is giving following error.

org.scribe.exceptions.OAuthConnectionException: There was a problem while creating a connection to the remote service.
    at org.scribe.model.Request.send(Request.java:70)
    at org.scribe.model.Request.send(Request.java:76)

To check with IS team they need a strong reason, could you please help me on this.

 

Thanks & Regards,

Vinayak S