cancel
Showing results for 
Search instead for 
Did you mean: 

Mobile SDK OauthFragment + cloud connect

boneill
Star Contributor
Star Contributor
Hi Guys,

I have registered an application on Alfresco Developers site.  I am trying to connect the Sample Mobile Android (Dashboard) app to my cloud account.  I do this by starting the Dashboard (sample) app in an Android emulator and then navigating via the ChooseServer Activity I click the Cloud button which launches the OauthActivity.  I can see from the code that it is instantiating a fragment called OAuthSampleAppFragment which should handle the Oauth authentication.  This class has the following constructor public OAuthSampleAppFragment(String oauthUrl, String apikey, String apiSecret).  I assume the app needs to pass in the Key and Secret from the app I have registered.  What value should be given to the oauthUrl parameter.  Is this the callback value.  Assuming it is the callback url, what value should I setup for this as the android app is running in an emulator so I dont understand how the android app can get a callback.  All of the examples shown for Oauth2 are for web applications, not mobile.

I would really appreciate some help with this as am very keen to get up to speed with android mobile sdk for alfresco and the mobile SDK looks like it is a great resource.

Regards

Brian
1 REPLY 1

boneill
Star Contributor
Star Contributor
As nobody has yet responded I thought I would simplify the question in the hope of getting a discussion going:

Does the mobile SDK for Android support the use of Oauth for authenticating against the cloud.  If so, has anyone got any information/documentation on how to configure the SDKs Oauth framework (OauthFragment etc) to use it. 

If this is the wrong place to raise questions about the mobile SDK please let me know where I should go.

Regards

Brian