I have a code working to search for content in evernote account using evernote sdk. Currently i get auth token for an account after the user gives her credentials and authorizes my app. But i dont want the user to type in credentials for an account that she has already configured in the evernote app in her android device. I want to get the auth directly from the evernote app(like dropbox and facebook sdk provides). So i want the flow to be,
Check for evernote app installed and an account is configured in it
If yes, then get the auth token from evernote app itself with only allow/deny page(note without showing the username/password page)
3.If no, then go to the browser and continue in the normal way.
How can I do this? Any Help ..
This is not something that the Evernote Android SDK supports yet.
The only supported authentication mechanism as of now is OAuth and that requires the user to enter their credentials on a webview and authorize your app.
The Evernote Android SDK is open source and you can look around the source on github and submit changes.
The functionality you propose would require the main Evernote app to register an Android Custom Account (just like Facebook's or Dropbox's apps do), and I'm not sure they have any plans to support that yet.
Related
I have integrated the ms graph sdk for authentication but it always open in browser to authenticate, Can we do the ms graph auth with already installed outlook app or azure app in android without opening browser [same like google account chooser]
Are you using MSAL as this is the supported Android/JAVA library here. MSAL allows easier sharing of identity between apps for instance. https://github.com/AzureAD/microsoft-authentication-library-for-android
There is more details on single sign on here too https://learn.microsoft.com/en-us/azure/active-directory/develop/authorization-agents
Yesterday I logged in to Airbnb with my Facebook account on my OSX. Shortly later I got a notification both on my iPhone and computer saying
"Airbnb is available to install on your iPhone"
My question is, does anyone here know how this was done? Is this a feature available to anyone who creates Facebook login? Any advice on how this was done is well appreciated.
Sincerely
Axel
I bet the notification is sent to you by Airbnb, right? If so, it's pretty easy to do. You give your facebook account information to Airbnb by login with facebook in there webpage. Then they just send a graph api request to facebook with your authorization access token, and you get an notification. For details you can refer to doc here: https://developers.facebook.com/docs/games/notifications
I found out what I was talking about. Facebook is adding a new feature which ask users if they want to get a link to the mobile app.
This is in Beta right now but you will automatically eligible for the feature if:
You have integrated the new Facebook Login on your website. You must be using at least version 2.0 of the Graph API and Login Dialog. Send to Mobile is not available for apps which invoke the Login dialog using Graph API v1.0.
You have integrated Facebook Login into your iOS or Android app. The "Single Sign On" switch within iOS and Android section of your app's dashboard must be set to "Yes"
Added your iOS App Store ID and/or the Android package name under which your app is listed in Google Play to your Facebook app's dashboard.
https://developers.facebook.com/docs/facebook-login/send-to-mobile
i am using twitter4j in my android application to post status to twitter like in this example:
http://www.androidhive.info/2012/09/android-twitter-oauth-connect-tutorial/
All is working good but the question is:
The authentication is done via browser .. is there any way to detect if twitter app already installed on mobile and authenticate via it ?
Thanks.
EDITED: November 27, 2014
Twitter recently released Fabric that does include SSO support. From the Android docs:
When attempting to obtain an authentication token, the Kit will use the locally installed Twitter app to offer a single sign-on experience. If the Kit is unable to access the authentication token through the Twitter app, it falls back to using a web view to finish the OAuth process.
My older response is below.
tl;dr
Currently, SSO with Twitter is not possible on Android.
Longer version:
What you are basically asking for is Single sign-on (SSO), similar to what is available with the Facebook SDK for Android. Twitter has never bothered to even implement their own library for Android, let alone SSO. There are a bunch of people who have asked on the dev forums (here and here) but the standard response is, and I quote,
We do not currently offer a SDK for Android with the same level of tight integration as is available in iOS5.
Twitter needs to first get their Android app to support SSO. I would suggest using Facebook and Google+ for login instead of Twitter.
I am developing an app which allow updates shared with Facebook.
The app is running f9, but what I actually want is to have login credentials to be provided from my UI Login page. Please guide whether it's possible from the Facebook perspective
The official Facebook SDK for Android supports single sign-on, so assuming the user has the official Facebook app installed and authenticated (very often the case these days) there is no need for them to provide their credentials to you app, they'll just click through a permissions page. If your users have not authenticated with the Facebook app on their device they will need to provide them via Facebook's authentication dialog. Your users will be more inclined to use the Facebook features in your app if you use this approach over a custom authentication UI.
You can find more information on the SDK on Facebook's developer site.
Check out the facebook android tutorial on facebook's developer page. Hope thats what you are looking for.
Salil.
I need help using the facebook test users from android.I am using the facebook android sdk and i need to be able to login as a test user and do actions like publish to the stream. I do not want to use the developer account associated with this application since it is my personal account. I realize that test users can only be created using api calls and such a call returns the login url, i understand how to use this in a browser but how can i use it in my android application. Can i create a dummy account and work with that account or is this against facebook policy.
Test users can also be created with GUI - not only by API calls. GUI is useful if You need to handle just few users. If there is a plenty of them - it is easier to use API and perform it programatically.
How to handle test users by FB GUI:
Go to FB developer site, where You created FB Application
on application tab, click Edit Roles
At the bottom of the page there is 'Test users' section where all test users are listed. This is where test users can be created and edited. Each user has option to log in as this user, change his name and set password next to his profile photo.
You have to set user's password to be able to login as him
Use his profile email address and password to login - it is also possible from Your app
You can create a dummy account but this is against FB policy and FB really does everything to make it harder to You :) This is not an option. Use test users.
If more info is needed on the topic - see my article, regarding test users strategy.
All the detail see on the official FB page
See an open bug in facebook. You can't login as test user with native Android app, but login with m.facebook.com should work
https://graph.facebook.com/me?access_token=ACCESS_TOKEN
where the access_token is the token from when the user approved your app. Found it here.