Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 469 results for
oauth2
- Page 1
Re: How to connect to the Pinterest API using PHP?
Programming
Web Development
1 Month Ago
by Dani
Never trust ChatGPT to write fully flushed out code for ya :) Pinterest uses OAuth to authorize your app on behalf of your app's end-user, if that makes sense. For example, your goal is for your end-user to load up your app, and have access to *their* Pinterest account. What OAuth does is give your end-user the ability to grant your app …
How to connect to the Pinterest API using PHP?
Programming
Web Development
1 Month Ago
by FarrisFahad
I want to post Pins using Pinterest API. I have tried to generate code using ChatGPT but it returns an error. Here is my code so far ... <?php $clientId = "xxx"; // Replace with your App ID $clientSecret = "xxx"; // Replace with your App Secret $redirectUri = "xxx"; // Must match …
Re: How to connect to the Pinterest API using PHP?
Programming
Web Development
1 Month Ago
by Dani
Oh, it looks as if the tutorial was for the old DaniWeb API that no longer exists. The [DaniWeb Connect API](https://www.daniweb.com/connect/developers) is also OAuth-based and has some of its own documentation.
OAuth help
Programming
Software Development
11 Years Ago
by IIM
I tried using Daniweb OAuth for android application but didn't able to understand as it requires redirect url but in my case it is a standalone desktop application interacting with dani webapi's. Do i have to create a webapp and then my application instead of contacting daniweb,contact my website and authenicate from there and then utilize daniweb …
OAuth 2.0 Implicit Flow with the DaniWeb API
Programming
Web Development
11 Years Ago
by Dani
# The nature of this tutorial ... This tutorial is designed to walk you through DaniWeb's implicit (clientside) OAuth flow. This is not designed to be an introductory tutorial to OAuth, and we will expect that you are already familiar with the nature of OAuth and/or have read our tutorial on [Getting started with OAuth 2.0 Explicit Flow](http://…
Oauth for twitter using C#
Programming
Software Development
12 Years Ago
by rrr12345
Hello guyz, I am trying call oauth/request_token in order to oauth_token and oauth_token_secret. First here's the code string url = "https://api.twitter.com/oauth/request_token"; SortedDictionary<string,string> sd = new SortedDictionary<string,string>(); sd.Add("…
Re: OAuth 2.0 and C#?
Programming
Software Development
12 Years Ago
by Dani
I don't know C# for anything, but the following links turned up from a Google search. Perhaps some of them might be helpful: * http://www.deanhume.com/Home/BlogPost/a-simple-guide-to-using-oauth-with-c-/49 * http://www.dotnetopenauth.net/ * http://code.pearson.com/oauth-20-password-sample-code-c
Re: OAuth 2.0 and C#?
Programming
Software Development
12 Years Ago
by riahc3
I don't know C# for anything, but the following links turned up from a Google search. Perhaps some of them might be helpful http://www.deanhume.com/Home/BlogPost/a-simple-guide-to-using-oauth-with-c-/49 http://www.dotnetopenauth.net/ http://code.pearson.com/oauth-20-password-sample-code-c Tried that first link, but the example is ASP .NET …
oAuth and twitter in C#
Programming
Software Development
15 Years Ago
by Diamonddrake
does anyone know anything about oAuth? I can't find a dot net example that works. and the very little documentation on it is way over my head. I'm just trying to add a secure way to update twitter in the client I'm messing around with. But I can't seem to even come close. I downloaded ever example I could find on it. and i haven't seemed to get …
OAuth 2.0 and C#?
Programming
Software Development
12 Years Ago
by riahc3
Has anyone worked with C# and OAuth 2.0? Documentation/examples is VERY poor on how to do a simply login. Thank you
Re: API OAuth for Desktop
Community Center
Meta DaniWeb
11 Years Ago
by Ketsuekiame
OAuth is pretty bad for native apps, whilst maintaining the trust of your users. There's ways around it of course, but none of them lead for a good user experience. Unfortunately nothing can be done about that :(
Getting started with OAuth 2.0 Explicit Flow
Programming
Web Development
11 Years Ago
by Dani
# What is OAuth and why do I want to use it? If you want to write an application that caters to existing members of a service, and you want your application to be able to access private areas of your end-users' profiles, or modify their accounts on their behalf, then you need OAuth. OAuth allows your application to automatically detect which …
Google API and oauth token problem
Programming
Web Development
9 Years Ago
by SimonIoa
Hello i have created an API account for oauth services. I did it so that our users could log in to our website through their google acount credentials i want to use that google API so that the users could import their contacts to out website and i am getting an OAuth *token parameter missing.* message. this is the code i use. How can i get a token …
Re: Getting started with OAuth 2.0 Explicit Flow
Programming
Web Development
11 Years Ago
by Dani
We also have a [tutorial about clientside (implicit) flow](http://www.daniweb.com/web-development/javascript-dhtml-ajax/tutorials/469810/oauth-2.0-implicit-flow-with-the-daniweb-api) which I encourage javascript people to check out as a follow up to this tutorial :)
Re: Getting started with OAuth 2.0 Explicit Flow
Programming
Web Development
11 Years Ago
by Dani
When you exchange a code for an access token, the resulting JSON gives you both an access token as well as a refresh token. Store the access token in the current session; it will work for up to an hour. Store the refresh token in your database; it can be perpetually exchanged for a new access token unless the end-user has deauthorized your app. …
Re: Getting started with OAuth 2.0 Explicit Flow
Programming
Web Development
11 Years Ago
by Dani
It should also be noted that the demo PHP outlined within this tutorial is the brute force method ... We simply bypass any methods of caching and always redirect the end-user to www.daniweb.com/api/oauth each time they load up the demo page, where they are issued a new code to be exchanged. We don't take into consideration the use of access tokens …
Re: Google OAuth embedded webview
Programming
Web Development
1 Year Ago
by AndreRet
Hi Dani, sorry only saw the mail now... I did some research as I never encountered the same issue and I hope the below will help - The message you received indicates that there is an embedded webview being used in requests to Google's OAuth 2.0 authorization endpoint. This message is usually displayed when using certain libraries or frameworks …
Google OAuth embedded webview
Programming
Web Development
2 Years Ago
by Dani
I received this email: > > Hello Google Developer, > > We're writing to let you know that we detected the use of an embedded webview in requests to Google's OAuth 2.0 authorization endpoint in the past 120 days associated with one or more of your OAuth client IDs listed in this email. > > Any affected authorization …
Proper way to do JavaScript-based OAuth
Programming
Web Development
12 Years Ago
by Dani
As many of you know, DaniWeb now has an API. It (optionally) uses OAuth 2.0 and it supports both server-side and client-side implementations. The server-side method I have down pat. However, I had to hack together the clientside implementation, and although it works, I'm not sure it's done "correctly". I wasn't able to find any …
Re: Complete oAuth Sample
Programming
Web Development
14 Years Ago
by JBLDW
I am not an OAuth user, and cannot give you any advice on using it. However, did you find these resources? [url]http://hueniverse.com/oauth/[/url] [url]http://hueniverse.com/oauth/guide/[/url] Looking at what little documentation I could find it looks as though you need to be experienced enough in using the things that OAuth depends on in order…
Re: Proper way to do JavaScript-based OAuth
Programming
Web Development
12 Years Ago
by Dani
This makes much more sense: <script type="text/javascript"> <!-- var client_id = <?= $client_id ?>; var access_token; if (window.opener != null && !window.opener.closed) { // Redirect the hash (which includes the access token) from the OAuth process…
Re: Google OAuth embedded webview
Programming
Web Development
1 Year Ago
by Dani
> To turn off the use of the embedded webview and resolve this issue, you'll need to modify the way you handle the OAuth 2.0 authorization flow in your application. Instead of using an embedded webview, you should switch to using a system browser for the authorization process. Here's a general guide on how to achieve that: That's the thing. I…
Fetch emails with php lib that suports oauth 2
Programming
Web Development
12 Years Ago
by jepp3
Hey! I'm trying to get mail(imap) from google by oauth authorization . I have got the authorization to work, but I can not retrieve the emails. As I understand it should be posible. But Google does not have any api to retrieve mail(?). I found the following: https://developers.google.com/google-apps/gmail/oauth_overview That says: > …
API OAuth for Desktop
Community Center
Meta DaniWeb
12 Years Ago
by Mike Askew
As far as I can see, to develop applications using OAuth we need to own server space to host a site? An application, when registered to DaniWeb, requires a URL to be provided. A desktop application obviously doesn't have one of these. When sending OAuth requests we have to provide a redirect URL on the domain we registered the application too, …
Re: API OAuth for Desktop
Community Center
Meta DaniWeb
12 Years Ago
by pritaeas
> we cant OAuth, correct? You can, [as documented here](http://wiki.oauth.net/w/page/27249271/OAuth%202%20for%20Native%20Apps). No straightforward solutions though.
Re: Daniweb OAuth support
Community Center
Meta DaniWeb
11 Years Ago
by ~s.o.s~
Yup that was a really bad mistake, good job spotting that! :) Anyways, I have finally got the OAuth API functions working in a console script. There are a few problems with some API calls which I have tried to mention inline in comments. The code is in Python and assumes you have the "requests" module installed. This code can be easily …
Re: Google OAuth embedded webview
Programming
Web Development
2 Years Ago
by Dani
Oh, also, I went ahead and [tested for compatibility](https://developers.googleblog.com/2021/06/upcoming-security-changes-to-googles-oauth-2.0-authorization-endpoint.html) with ?disallow_webview=true and it still worked. Should I just ignore the email?
Re: Complete oAuth Sample
Programming
Web Development
14 Years Ago
by JBLDW
I have done a quick search and came up with the main OAuth page: [url]http://oauth.net/[/url] ...and a Google page which should help you with some examples: [url]http://code.google.com/apis/accounts/docs/OAuth.html[/url] ...hope these help with whatever you are working on ...and no worries about your bad English - it's no worse than …
Re: Daniweb OAuth support
Community Center
Meta DaniWeb
11 Years Ago
by ~s.o.s~
**EDIT:** Missed your latest post so the below is for #4 post in this thread. > The method outlined on that page would work with our existing serverside implementation. No, there is a very important distinction which is why the "are you expecting desktop app writers to spawn a local web server" part in my original post. In the …
Re: Daniweb OAuth support
Community Center
Meta DaniWeb
11 Years Ago
by ~s.o.s~
Sure, I'll try testing it on my side. I'm assuming you have made some changes to how 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 should ideally bring me to a page which asks for user …
1
2
3
8
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC