I've found several guides (here, here, and here) on how to create a helper app to launch a main app on login. However, as my app is not distributed through the App Store, I do NOT want to enable sandboxing, and all of the solutions I've found require both the helper app and the main app to be sandboxed.
Is there any way to create a helper app to launch a main app at login WITHOUT requiring the use of sandboxing?
You can use [NSWorkspace launchApplication:] to launch your app from your helper.
Related
I'm trying to implement a sign in with google button on a react native application, there is 0 documentation nor any help online with my scenario, there are only firebase examples.
This already works perfectly on React js app, everything is configured correctly, however on the react native app, I'm just stuck with a library that takes the client ID, I recieve authUserCode, and some other google credentials, but no redirects occur, normally on the react js, it redirects to another url, and to the backend and retrieves the token and saves it as a cookie. How can I continue with this on react native? should I call the redirect url manually?
Laravel with Socialite on the backend, react native on the front end, callback function and url work perfectly.
I had developer error on react-native-google-signin, but was solved when adding localhost to authorized javascript origins. Can someone explain this
in react native you can't use cookie, so use AssyncStorage for save state of new user, and when you use google login in react native you may set firebase:
create new project
2- create android application in your firebase
project
3- when you try number 2 : enter your package name
correctly, be careful! and enter your application SHA1 code.
3-1- for getting SHA1 code go to the android studio, in right side, click
on Gradle>Tasks>android>signingReport double click on
signignReport.
3-2- in the Terminal ( of android studio ) you should see SHA1 codes, don't hurry, Look for
Task :app:signingReport
Variant: debugAndroidTest
Config: debug
copy their SHA1 code and go back to the firebase.
4- enter your SHA1 code and create application, in the next firebase gives you a file, google-services.json.
4-1- download the file and copy it to android>app in your project.
your firebase set is complete.
These steps will allow us to return to your application when the validation is complete.
I have a website which uses an identity server to authenticate a user, though OIDC, I think. Inside the Xamarin Forms application, I have a facility to log in a user through an identity server via a token.
The website itself uses cookies to handle access tokens which difference to the application. (Note: the website was not written by me). I have so many features to write, so I decided to use WebView to handle those features using React, etc., so I don't need to rewrite the code in native and easy to manage at runtime when people using the application.
What is the logic behind having the mobile application log into the authorized page silently without the user needing to authenticate within the WebView?
Is it possible to handle this scenario?
On Android you can use the CookieManager to add/remove cookies that your private instance of Webview will use.
On iOS, UIWebView has NSHTTPCookieStorage and on the newer WKWebView (11+) you have WKHTTPCookieStore
I need to integrate google contacts import in my nw.js app. How should I create the google app ? When I create the app as web app, it asks for redirect uri which is not available for desktop apps. I'm not clear about how to implement google integration for desktop apps. Can anyone help me on this. ?
There is an option in OAuth for desktop applications, when instead of http://domain you will redirect to app://something and you application will be started or receive a callback.
To make this, in your application you need to open request token url in new window (new window in your node-webkit app).
Also: google docs and node-webkit github issue and other issue about this.
For me I thought better would be open a default browser, there is a high chance that user already authenticated, and then just need to click "allow". So I start simple webserver inside node-wekit app and redirect to localhost.
You can see implementation in my project https://github.com/Paxa/postbird/blob/90cfb53b1775310eb2f262c8b54c9dba15b5cc0a/app/heroku_client.js#L185
To open default browser I use command "open" (only for mac)
child_process.spawn('open', [url]);
I also try to close browser window when user redirected back, it works but not always.
response.writeHead(200, {"Content-Type": "text/html"});
response.end("<script type='text/javascript'>window.close();</script>");
May be I should also make a window active when receive redirect back (didn't try it yet):
var currentWin = require('gui').Window.get();
currentWin.focus();
If google not allows to make localhost as a callback url, you can try to use some domain (even free) and point it to 127.0.0.1 or use http://readme.localtest.me/
After upgrading to GoogleAppEngineLauncher 1.9.18 and clicking on the Deploy button, a new tab appears in the browser with a page reading:
Google App Engine appcfg would like to:
* View and manage your applications deployed on Google App Engine
* View and manage your data across Google Cloud Platform services
By clicking Accept, you allow this app and Google to use your information in accordance with their respective terms of service and privacy policies. You can change this and other Account Permissions at any time.
So I click the Accept button and a new page appears:
The authentication flow has completed.
The deploy completes, but this happens every time I Deploy a new version. What's up with this? Why doesn't it remember that I accepted the TOS and Privacy Policy? This is annoying!
Another question: How can I turn off this new "feature"?
Update: This only seems to apply to Mac launchers
Update on 2015-04-20: Upgrading to 1.9.19 has solved this problem
Did you just upgrade the appenginelauncher to version 1.9.18?
Per the release notes:
Mac Launcher now uses OAuth2 exclusively for app deployments.
Permissions are granted through the browser instead of a login dialog.
It looks like this is the way it is now.
I know that you can connect an iOS App with facebook using facebook connect, a library provided by facebook to get easy access to the facebook services.
Can someone explain me how I can connect a OSX Cocoa Application with facebook? I don't get it and all I can find is how to create Apps inside facebook but what I want is to access facebook to show new from my facebook friends in my application.
Is there a library or a documented way on how to do this?
Thank you very much
twickl
I think there isn't a library for OSX apps (at least, not an official one). You can always use the Graph API to grab content from Facebook.
If you decide to go this way, I think that you will need some script in order to get an access token and have access to content inside your friends profiles.