If i am using ngCordovaOauth for authentication for Facebook,Twitter and Instagram
then what should be callback url, when developing and app for mobile .
If you read the plugin docs
Using ngCordovaOauth In Your Project
Each web service API acts independently in this library. However, when
configuring each web service, one thing must remain consistent. You
must use http://localhost/callback as your callback / redirect URI.
This is because this library will perform tasks when this URL is
found.
So, the callback url is http://localhost/callback
Related
I'm trying to make it possible to log into an iOS app with Instagram.
I'm trying to do that with SFAuthenticationSession and unfortunately SFAuthenticationSession requires the callbackURL to be a custom one (like myapp://) and Instagram only allows http/https links as redirect URIs.
The solution I've come up with is to provide Instagram with a URL of a Firebase Cloud Function and do a redirect or another request in my cloud function to myapp://something.
The request module only makes http/https requests and I haven't found a way to simply call my custom URL.
As far as I have observed the SFAuthenticationSession's callback closure will only be called if the user cancels or if the thing detects a call to the provided callbackURLScheme.
Can you guys help me out? Thank you.
How do you make a request to Google to get a user's profile information with the returned tokens from Azure Mobile Apps? Specifically I am using the iOS Microsoft SDK in Objective-C.
I found this article but it looks to be referencing old information based on the date and the response that was returned.
I also tried calling /.auth/me as a GET request, but that returned Cannot GET /api/.auth/me
You need to make an HTTP request to /.auth/me, but without using the custom API support that's in the iOS SDK. In other words, use NSURLRequest directly, and not MSClient.invokeAPI. Your call needs to be authenticated, so put the token from client.currentUser.mobileServiceAuthenticationToken in the X-ZUMO-AUTH header.
We have an open feature request to add a method to the client SDKs to make this easier: https://github.com/Azure/azure-mobile-apps/issues/30.
And, you're right that your article was referencing information on Azure Mobile Services, which behaves completely differently when it comes to authentication.
I am making an app that uses Google's Place Api. On Google's developer website there are four options for the place api: Andriod, iOS, JS, and http. Because I am using the api in an ios app I thought to use the ios option. However in the sample code they provided seems a little odd in that they don't use an url to make a http request. So then I went on http and I was familiar with the approach. You make an url and add all the necessary parameters. So can I use the http approach for google place api inmy ios app?
I'm trying to achieve following: I have facebook authentication on my web app. I want to return back to PhoneGap application after authentication is done.
The authentication flow works just fine. But returning to app should be done by providing a redirect url to facebook authentication URL. The problem is that I don't know what's the URL.
I've tried custom URL scheme, which works when authentication flow is executed in external Mobile Safari window. But in this case, the authentication is set to the Safari session, not for the Web App.
If external window is not used, but the authentication is done in Web App, the custom URL scheme won't work.
I have a hint this could be done with PhoneGap ChildBrowser plugin. That's the last possible option I want to try
If the only possible solution is ChildBrowser, I haven't found any good tutorial or instructions how this should be done. Any advice on that?
please give solution if any one have better example
Phonegap released a plugin for connecting to facebook: https://github.com/davejohnson/phonegap-plugin-facebook-connect
I am a newbie here and am trying to use the Foursquare API to build a mobile application. Most of my functionality is client side and I do not want to host my application but the OAuth process requires me to provide an application URL and a callback URL. Any ideas on whether I can get around this requirement? Can I provide dummy URLs?
You can specify a dummy URL and sniff the key off of the path (see: https://github.com/anoopr/core-data-talk/blob/master/example/Classes/FoursquareAuthViewController.m).
Alternatively, I believe you can specify an iOS custom URL scheme that you application then handles appropriately.