I have a wordpress website, for which I was developing an android application. GETing data is pretty easy, as no authentication is required. But posting comments, liking a blog, these actions require authentication. Can someone guide me about how to social login (Google or facebook login) to authenticate and post comments or like a post, through the android application.
There is Rest API. You can use it to manipulate data without using web interface at all.
Also there an article about using Rest API in Android
oauth is pretty simple. You just need to get a token(string) from Google or Facebook and you will use in Rest API.
Related
I am developing an Android app with a REST API. The REST API needs authentication for security. I would like to use Google's OAuth2 provider since I the client will be on Android. I don't want to store passwords myself.
I'm trying to understand how the flow should work at a conceptual level. Authenticate to OAuth2 services describes how to get an OAuth token in the Android app. But then what? Do I need a route that accepts this token?
I am implementing the API with Django and Django Rest Framework. I found python-social-auth to implement OAuth flows for the API. It works great when I test manually in a browser going to http://localhost:8000/social/login/google-oauth2/. When I request that URL with a HTTP client, it returns HTML for a Google login page. In the Android app, should I load that in a WebView? And then what? That doesn't seem quite right to me since I'd rather use the Android OAuth API that I linked earlier.
What am I missing here and how do I solve this?
I am working on a Android application which authenticates the user with Google+ sign-in. Now I would like to communicate with my web api to store and get data. What is the most easy way to implement authorization on my web api?
Before implementing google+ sign-in, users had to register with a username and password and I used basic authentication to authorize users with my server.
Currently (planning on)using:
Client side authentication with google+
Asp.net web api (no authorization for google+ sign in yet)
SSL
If anyone could make this process clear and maybe with some examples or webpages to find the information I need that would be perfect.
The Google+ documentation includes a full explanation of the REST API and its capabilities, which you can use to see what is available for your web implementation. Many of these methods include code snippets for .NET, such as the people.list API call.
There is also a C#/.NET quick-start that you can use to see how Google+ Sign-In works at a glance.
So i need to be able to use Oauth for the login part on my Android application(not for Twitter, google,etc...) it's a private application. The rest of the app uses rest services w/ the authenticated token.
Here basically i'm looking for any tips, a library or an article recommendation. Most of the articles i found are about how to login to Google's services and such.
Thanks,
Check this one: scribe It is pretty simple.
Here it is a list of libraries cited by the Oauth2.0 "authority":
oauth.net/2
I'm developing an app which will allow me to post on Facebook.
But I want a native application to post without any external SDK's. How can I do it?
See the Facebook Authentication docs: http://developers.facebook.com/docs/authentication/
If you need to authenticate your mobile app against Facebook, then follow the Client-side Flow (further down the page). If you also have a server, then use Server-side flow.
For server-side implementation see LeanEngine classes FacebookAuth and FacebookLoginServlet: https://github.com/leanengine/LeanEngine-Server/tree/master/lean-server-lib/src/main/java/com/leanengine/server/auth
On the client side you can use it via a WebView: https://github.com/leanengine/LeanEngine-Android/blob/master/lean-android-lib/src/main/java/com/leanengine/LoginDialog.java
i am developing app.its having post message on facebook and twitter.i searched on net and got many example but i confused with twitter.
if i am using oath authentication how should i provide login screens for clients.many example
what i found just they are using consumer and secret key where i need to pass uname,pword
can you pl suggest me its very urgent to me
Thanks in advance
Aswan
Twitter using oAuth at present, so whatever api's you will get, they will open the official twitter login page in webview, so you cannot use your own login page for that, twitter does not want's that........Hope it help's youGood luck.......
I've done this using a WebView (to hold the login UI which comes from twitter.com) and Signpost for the OAuth authentication. There's a good example here.
However, this turned out to be a less than brilliant mobile user experience - WebView login screens just suck - so I switched to using XAuth instead of OAuth, which you have to apply to Twitter for. The benefit of doing that is that you can have your own custom login UI, which isn't web-based. Unfortunately Signpost doesn't yet support XAuth so I also changed to using a stripped-down version of JTwitter.
If you are interested in using Singpost and Android's HttpURLConnection to obtain access token based on username and password you can have a look at my post. I was referring to Twitter XAuth so that's should be what you looking for. It works for me.
http://3citydev.blogspot.com/2013/05/how-to-obtain-xauth-access-token-using.html