Re: Daniweb OAuth support Community Center Meta DaniWeb by ~s.o.s~ … standlone apps deal with the Daniweb oauth infrastructure. I tried sending a request: http://www.daniweb.com/api/oauth?response_type=code&client_id=40…&redirect_uri=urn:ietf:wg:oauth:2.0:oob which… Daniweb OAuth support Community Center Meta DaniWeb by ~s.o.s~ Hi Dani, AFAIK OAuth 2.0 supports 3 flavours: Server side apps, client side apps and installed apps. Does Daniweb Oauth allow OOB in the redirect_uri which is part of the support for installed/standalone apps? If no, are you expecting desktop app writers to spawn a local web server and use the serverside flow? Re: Daniweb OAuth support Community Center Meta DaniWeb by ~s.o.s~ …asking for code url1 = 'http://www.daniweb.com/api/oauth?response_type=code&client_id=put_in_your_client_id&redirect_uri… code = 'put_in_your_code_from_above' client_secret = 'put_in_your_apps_client_secret' url2 = 'http://www.daniweb.com/api/access_token' post_data = { 'code': code, 'client_id': 'put_in_your_client_id… Re: Daniweb OAuth support Community Center Meta DaniWeb by ~s.o.s~ … that URL is opened, the user can login to the oauth provider, accept the application terms and get back a token…'s a local app). Now the problem is that the OAuth provider would try redirecting to this address which would fail… out-of-process) which would accept the redirect by the Oauth provider, capture the code and then start phase 2. Hope… Re: Daniweb OAuth support Community Center Meta DaniWeb by ~s.o.s~ … changes are to be required to the server to support OAuth 2.0 standalone apps. But, I can definitely point you… should interact with providers who have desktop/standalone support. [Using OAuth 2.0 for Installed Applications](https://developers.google.com/accounts… Re: Daniweb OAuth support Community Center Meta DaniWeb by ~s.o.s~ … access token using the URL which I got from your OAuth Daniweb tutorial. I have posted the URL I'm using along… Re: Daniweb OAuth support Community Center Meta DaniWeb by Dani Just so that we're on the same page, you should be at: http://www.daniweb.com/api/oauth?response_type=code&client_id=40&redirect_uri=oob Correct?? Re: Daniweb OAuth support Community Center Meta DaniWeb by Dani I, personally, am a web developer with no desktop application experience. As a result, there is no native support for OAuth with installed apps. It would be great if you could point me to some examples on the correct method to handle installed apps and I'll defintely look into it. Re: Daniweb OAuth support Community Center Meta DaniWeb by Dani Random question ... > Now the problem is that the OAuth provider would try redirecting to this address which would fail. … Re: Daniweb OAuth support Community Center Meta DaniWeb by ~s.o.s~ Yes, that URL worked fine. OAuth for standalone app has two parts: getting the code by … Re: Daniweb OAuth support Community Center Meta DaniWeb by ~s.o.s~ … but should be very easy to follow): url2 = 'http://www.daniweb.com/api/access_token' post_data = { 'code': 'my_code', 'client_id': '40', 'client_secret': 'my_secret… OAuth help Programming Software Development by IIM I tried using Daniweb OAuth for android application but didn't able to understand as … my application instead of contacting daniweb,contact my website and authenicate from there and then utilize daniweb Oauth.I am a bit confused… Re: Daniweb OAuth support Community Center Meta DaniWeb by Dani In the document you linked me to, it specifies that, "This flow requires that the application has access to the system browser or the ability to embed a browser control in the application." The method outlined on that page would work with our existing serverside implementation. Re: Daniweb OAuth support Community Center Meta DaniWeb by Dani Oooh I see what you mean by OOB. We currently only support the redirect uri being an http://localhost port. Is there a need to expand this to support the other method as well? Re: Daniweb OAuth support Community Center Meta DaniWeb by ~s.o.s~ > Is there a need to expand this to support the other method as well? I would say "yes" otherwise it's pretty painful to spawn a local web server just to get the code and makes the entire task look daunting. Plus if you are hoping for an Android/Win/iOS port, adding this would ease the job of the guy writing it. Re: Daniweb OAuth support Community Center Meta DaniWeb by Dani I had something else already on the todo list for today but I'll try to tackle this as well! Re: Daniweb OAuth support Community Center Meta DaniWeb by Dani I've made some changes. Still working on it, but please let me know if this is what you're looking for. Sorry but I have no experience with this stuff. Feedback much appreciated!! Re: Daniweb OAuth support Community Center Meta DaniWeb by Dani Try setting the redirect_uri to simply 'oob' instead of the whole urn:blahblahblah. Re: Daniweb OAuth support Community Center Meta DaniWeb by ~s.o.s~ > Are you not able to simply send an HTTP request and then capture the header information that is returned? The information that you need is tacked on as a query string parameter to the redirect_uri. You can simply throw out the redirect_uri and parse the parameters?? Problem is that this process is not automated and requires user intervention.… Re: Daniweb OAuth support Community Center Meta DaniWeb by Dani I'm sorry, I'm still confused what isn't working? Did you follow the documentation on the API page and specify 'oob' as the redirect_uri? Is that not what you want?? Re: Daniweb OAuth support Community Center Meta DaniWeb by Dani You are using redirect_url instead of redirect_uri in your code. Took me awhile of staring at it to figure that out. Re: Daniweb OAuth support Community Center Meta DaniWeb by Dani > If you are modifying something, make it a POST call. If you are retrieving something, make it a GET call. For the most part, that's the way it works. The start/stop watching articles thing is probably a bug I'll look into. Also, it's a known limitation that you can vote but you can't unvote from the API right now. Re: Daniweb OAuth support Community Center Meta DaniWeb by Dani > \# TODO: I can start watching but can't stop watching articles when POSTing Why can't you just do exactly what I am doing in my sample usage example?? I am stopping watching an article through a POST request. > \# TODO: Is there a reason why the response text of the below 4 API calls is always the LCD v/s CRT thread?! I don't have access… Re: DaniWeb API Developer Competition Community Center Meta DaniWeb by Ketsuekiame …to log into other websites with Daniweb, that choose to be affiliated with Daniweb, mission accomplished :) There's … Finally, and this is more appropriate to Daniweb itself, the OAuth authentication as it's written doesn't follow…Call App WebService -> Store Token -> Redirect to Daniweb for access_token -> Redirect to App website -> … Re: DaniWeb API Developer Competition Community Center Meta DaniWeb by Dani …before deciding on OAuth was meeting with my friend Matt, who is the one creating an iOS DaniWeb app. I asked… him if it was possible to use OAuth to create native applications … are some examples of native applications that can use the DaniWeb API: * Browser toolbar that gives realtime notification about PMs… Re: DaniWeb API Developer Competition Community Center Meta DaniWeb by Ketsuekiame … a required parameter (such as redirect_uri) is missing. In OAuth 2.0 the redirection URI is an optional parameter as…and have no trouble believing that your friend has multiple OAuth projects and has no issue embedding the browser or …, embedding the browser is certainly against the intention of OAuth as the entire idea behind it is so that you… Re: DaniWeb API Developer Competition Community Center Meta DaniWeb by Dani …the backend model-layer functionality (MVC model) that the DaniWeb website uses. We are incapable ourselves of performing search…functionality that doesn't currently exist in core DaniWeb. If native DaniWeb doesn't have a need to do the… find an OAuth library in C# for Facebook, Stack Overflow, Github, etc., and modify it to use DaniWeb instead. >… Re: DaniWeb API Developer Competition Community Center Meta DaniWeb by Dani …avoid in order to stay true to the way OAuth was intended to authenticate. He showed me finished… on the non-OAuth requests before playing around with OAuth, so he cannot comment about DaniWeb's specific implementation yet…. I'm looking forward to his feedback since he has so much experience working with OAuth Re: DaniWeb API Developer Competition Community Center Meta DaniWeb by Ketsuekiame … the spec about it :( [This Page](http://wiki.oauth.net/w/page/27249271/OAuth%202%20for%20Native%20Apps) on the wiki lists… can make it work fairly easily. *My* problem is with OAuth itself, not your implementation of it ;) Re: DaniWeb API Developer Competition Community Center Meta DaniWeb by Dani I stick by my argument that it was determined (and I think that inherently many of you guys agree) that OAuth was the best route to go down for our API, and we adhere to the OAuth standards. I know that there are a good number of native apps and mobile apps that utilize OAuth, but I personally have no experience with writing native apps.