Expand my Community achievements bar.

SOLVED

Problem while creating connection to OAuth 2.0

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

6 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Level 10

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-un...

Avatar

Level 2

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=2df418027c5302...

 

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

Avatar

Level 1

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

Happy new year to you all!

Avatar

Level 2

Hi Mads Hvidberg,

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

Could you please help.

 

Thanks & Regards,

Vinayak S

Avatar

Level 2

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