Click here to Skip to main content
15,903,388 members
Everything / OAuth

OAuth

OAuth

Great Reads

by Florian Rappl
Crawling tons of (individual) web information and creating statistics using Windows Azure.
by Zijian
Reusable codes for JWT security in business applications
by rmostafa
Simple Google Analytics Access, with Service Account Credential OAuth2
by Raymund Macaalay
For this article, we will be creating a simple password reset of a user in Google which is very useful when you want to revoke access for a user in your domain, but leaving the account readable as long as you have the password.

Latest Articles

by Zijian
Reusable codes for JWT security in business applications
by adriancs
Integrate Google OAuth 2.0 with ASP.NET in C# for seamless user authentication
by Pete_Oliver
This article provides a step-by-step guide on configuring OTDS 10.5 Patch 6 as an OAuth 2.0 Authorization Server. It also walks through an example scenario of authorizing access to a RESTful API using the OAuth 2.0 Resource Owner Password Credentials Grant.
by Nikola Breznjak
Adding Google OAuth support to Raneto as the latter allows only basic username/password authentication

All Articles

Sort by Title

OAuth 

30 Jan 2014 by rmostafa
Simple Google Analytics Access, with Service Account Credential OAuth2
10 Jun 2014 by Deepika_Thakur
I am using oauth API with my Asp.net project and getting 404 error when I am trying to integrate my LinkedIn account to my site. It was working fine till yesterday but now I am unable to integrate my LinkedIn account.This are the links of API I am...
6 Nov 2017 by uspatel
This demonstrates how to use MSAL with Azure B2C for authentication.
2 Oct 2013 by raghav.softobiz
Hello Guys,I want to access my gmail emails in my c# code. Can aanybody please tell me how can I do this without using and third party toolkit ThanksRaghav
2 Oct 2013 by codestar007
How to read mail from Gmail using C#.net[^]
2 Oct 2013 by ridoy
Check this article:POP3 Email Client (.NET 2.0)[^]Then see:C# - Retrieve Email from Gmail Account[^]How to read mail from Gmail using C#.net[^]Read the latest Gmail message witth C# Application[^]How to read Hotmail or GMail using C#.Net[^]
3 Oct 2016 by Florian Wendel
Every software developer must face the challenge of integrating a plethora of external APIs into their app to increase its value to their users. This can take a lot of time since these APIs are often vastly different. API abstraction promises relief but there are different approaches.
20 Apr 2024 by danash
Using this code (below), Trying to obtain an access key via oAuth2 . Request runs fir about 2 mins then throws and error "request was cancelled". This is driving me nuts. Could use a second set of eyes and help. -Thanks Protected...
U 8 May 2024 by danash
The problem was my Dev environment was hooked to Starlink satillite Internet which uses a NAT (network address translation) to household consolidate my IP address into one outbound IP. I pulled the ethernet cable from my desktop and used my...
17 Apr 2015 by PEtter Ekrann
How to do authentication through Azure with OAuth2. Clearing up some not so well documented thing in Azure
27 Jan 2014 by Member 10553642
Facebook oauth process prompts user to login using his username and password and prompt about permissions.So my question is if there is way to do programmatic oauth login. Where we pass user's username and password programmatically and acquired user's permission (access token) without user’s...
27 Jan 2014 by Garth J Lancaster
well, you havnt specified a language, so your question can only be answered in broad terms - 'Yes, its possible' see here for oauth implementations that may help http://oauth.net/code/[^]All that is very well, but a bigger question remains - how are you going to store the credentials...
29 Jan 2014 by Hossein Ghiyasi Mehr
Do you want to automate final step in getting tokens?If yes, you have to simulate browser request by analyzing web page source code.
9 Jun 2013 by Florian Rappl
Crawling tons of (individual) web information and creating statistics using Windows Azure.
16 Sep 2013 by pkmonga
I have to convert PHP project having Rest ful webservices with 2 legged OAuth Implementation and i have to convert it into .Net Project.i am not able to find the Suitable OAUTH in .net with parameters given to me.Parameters given only are Consumer Key, Consumer Secret Key and URL to hit.Based...
19 Nov 2018 by HackensackNJ
Please bare with me. Rookie on the block. I am tasked to provide clientcallback url and this needed to authenticate zoho desk host: https://accounts.zoho.com path: /oauth/v2/auth response_type: code client_id: ### scope: Desk.tickets.READ,Desk.basic.READ,Desk.tickets.CREATE,Desk.basic.CREATE...
18 Nov 2018 by RickZeeland
Usually WebRequest is used, see example here: API Examples | Developer Help - Zoho CRM[^] And for the API 2.0: https://help.zoho.com/portal/community/topic/authorization-to-api-2-0-via-c[^]
19 Nov 2018 by HackensackNJ
So...that redirecturi can be anything from what I heard. Then get the code from the address bar and do post with that code, clientid, clientsecret and scope and other permissions. Is that a true statement for the redirecturi can be anything?
18 Jun 2018 by Tony Girgenti
Hello, I have an Asp.Net 4.5.2 web application client that makes calls to a OAuth 2.0 application running on my server Core 2.0 website. It works without a problem. The problem is when it returns from an authorization call to the server, it does not execute the return method specified in the...
16 Jun 2018 by Mehdi Gholam
Read the following : Authenticate with OAuth 2.0 in ASP.NET Core 2.0 • Jerrie Pelser's Blog[^]
18 Jun 2018 by Tony Girgenti
To fix this issue, I added this route to the Startup.cs file: routes.MapRoute( name: "token", template: "token", defaults: new { controller = "API", action = "GetAccessToken" });
16 Jul 2020 by Member 10014841
I am working on ADFS external authentication project. I am using a self signed certificate, which is imported in Trusted people store. I need to verify whether importing a CA certificate to Trusted people store work or not. What I have tried: ...
10 Mar 2018 by Member 13424692
Hello everyone, I need to gain access to a google sheet from a winforms program. What I want is to have a google service account gain access to said sheet without the computer user ever having to interact with the program. I believe the service account is capable of this, but, if not, please let...
21 Nov 2018 by Bruno Baia
Spring.NET Social helps you to simplify authentication (OAuth) and API binding with Software-as-a-Service (SaaS) providers such as Facebook and Twitter.
12 Feb 2019 by Richard MacCutchan
Plenty of suggestions here: move an email from one gmail account to another using gmail-api - Google Search[^]
15 May 2018 by NobsterTheLobster
Publish a WCF DataService with entity model, updatable views, filtering and authentication
13 Jul 2015 by Sergey Alexandrovich Kryukov
Sorry, this is not a question. And this is not a sample-finding or sample-writing service. You can start here: http://oauth.net/code[^].—SA
17 Apr 2024 by Zijian
Reusable codes for JWT security in business applications
11 Mar 2016 by Raymund Macaalay
For this article, we will be creating a simple password reset of a user in Google which is very useful when you want to revoke access for a user in your domain, but leaving the account readable as long as you have the password.
30 Sep 2012 by mayankkarki
Hi, I am using 4shared rest api, and working on edit file information by http put. I coded like this: public void UpdateFile(string fileID, string accessToken, int uniqueID){ Action OnResponse = this.OnFileUpdate; string uri =...
9 Mar 2014 by Nelek
This is not how CP usually works. Most important goal here is to learn and help learning.You are supposed to try it on your own, and come here when you got stuck with something, with a concrete question about your code, design, etc. Please have a look to What have you tried?[^] to see a good...
21 Sep 2012 by Shahir15
Hi guys I am trying to integrate Facebook authentication into my website, so i created and registered my App on Facebook(Got my App ID and secret). I have tried many different ways to code the OAuth. All are giving me the same result. I have found the most meaningful error.{ "error": {...
21 Sep 2012 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Please check this Facebook “Invalid redirect_uri”, but the url looks fine to me[^].Your redirect url: http://dennys-m.appspot.com/fb_login/ must match the `canvas url` in https://developers.facebook.com/apps/ configuration panel.Fortunately, these days Facebook gives the error message...
28 Sep 2016 by jayantasa
service is working fine in local but not working in iisWhat I have tried:string uri = context.UriTemplateMatch.RequestUri.OriginalString.Replace (context.UriTemplateMatch.RequestUri.Query, ""); DataSet dsconsumersecretkey =...
22 Sep 2014 by Member 10530137
In my windows form application,trying to fetch details of yahoo email such as sender,date,subject,body text & attachments. I'm using "OAuthBase.cs" class to get request and access token. Now my issue is to fetch users email details.For contact details i used...
22 Aug 2013 by sameer.pantvaidya
I am implementing Google API Login: I am being able to login to my web app and now I am trying to fetch user details like Name, Email etc.To fetch a user name I've a following code (got it from Google Developer's site)gapi.client.load('plus', 'v1', function () { var request =...
13 Jun 2014 by Duncan Edwards Jones
More of an architectural / early thoughts question rather than a code issue.I have an application where the logged in user adds commands to a command queue. (CQRS) These commands may be executed later when the user is no longer logged on so I need to pass along an authentication token...
10 Feb 2020 by Lokesh Zende
Hi,I am trying to implement OAuth in my application.On login page, I am setting a session varible with some string value.Session["CompanyInfo"] = "Your Company Name";I then redirect to the ADFS login page where I enter correct user name and password. After successful authentication, it...
6 Oct 2019 by Varinder Raii
I need to get URL of requesting web site in My WEB API 2. I need to do this because of security. I want to response to the request which are coming from the URLs that are registered on my server.In Web API I have used1) Owin2) OAuth 2.0So far I have tried to get it from owin...
6 Oct 2019 by Iosif_petre18
you can get the website url from request Headers: context.Request.Headers["origin"];
4 Dec 2014 by harry madaan
Hello,I'm trying gmail login on my website. i used Oauth2 for this.http://www.idiotminds.com/sign-in-with-google-account-using-oauth2-0/Here process is working fine but i don't getting any data from the service like username , email etc. no any data is returning for...
7 Dec 2014 by harry madaan
Hello, I'm trying gmail login on my website. i used Oauth2 for this.http://www.idiotminds.com/sign-in-with-google-account-using-oauth2-0/ Here process is working fine but i don't getting any data from the service like username , email etc. no any data is returning for me...
3 Oct 2015 by abdo.kouta
Hello Guy, I'm trying to Add External login and i already add Client ID and Client Secret but it comes with problem because of redirect URL and i tried over and over to figure out a way to solve it could any one helps me in how to get the correct redirect URL here is the problem code...
26 May 2017 by Kishan K Choudhary
Guide for custom Google login in MVC without default Identity
10 Oct 2017 by Member 11767325
make sure that Microsoft.Owin assembly in publish folder
14 May 2020 by Member 14779968
I have created a method to get the token. My token request sends the parameters as application/x-www-form-urlencoded. Its takes the credentials as form-data. When I get the token I want to use it in my Send request method, where I defined my...
14 May 2020 by Garth J Lancaster
The answer really depends on the OAuth provider, but one possible way is to send the Username & Password as 'Basic Authentication' ie headers - something like this using HttpWebRequest .... String encoded =...
3 Mar 2015 by Aniket Babar
Hello,I google at every website but not get any related tutorial ragarding my problem.i have used following code to connect with facebook using login by user, OAuthWebSecurity.RegisterClient(new FacebookExtendedClient( "***************", ...
12 May 2020 by Member 14779968
I am trying to get my OAuth token but getting a Bad request. I am trying to use Dictionary to store in key pair values but its not working. I have successfully send request using another library using HttpWebResponse and when I check in fidler I...
12 May 2020 by Richard Deeming
You're looking at the request, not the response. The request which succeeds is sending the parameters encoded as application/x-www-form-urlencoded. The request that fails is sending the parameters encoded as JSON. You need to add the parameters...
8 Jul 2015 by Bounze
Hello guys:I'm totally new to C# and OAuth and I'm looking for help on how to create a C# Console Application that can be used to Authenticate a user on my project, by using his/her social network credentials (Facebook will suffice, for now).Now, I've been searching around the web for...
8 Jul 2015 by Member 10544672
Hi friends,I'm using fb login oAuth using javascript. here we use the code and get data in json form. window.fbAsyncInit = function () { FB.init({ appId: 'XXXXXXXXXXXXXX',//get app id from fb developer app status: true, ...
28 Feb 2021 by wusir371
When I use the ASP.NET MVC4 Internet Application template offered by VS2012, it's OK to implement the OAuth and OpenID, so I can login with Google or Facebook account. Now, I am using ASP.NET MVC4 + MySQL to develop a website. I uninstall the EF and use ADO.NET to access the MySQL, everything...
23 Mar 2017 by Member 3725115
I am new to WCF RESTful services and I got a requirement to use OAuth 2.0 authentication technique in one of the WCF services project. I would like to know if is is feasible/possible to use OAuth 2.0 with WCF. I found lot of sample using OAuth 1.0 with WCF, but nothing on OAuth 2.0. Please...
6 Dec 2014 by pms.bt
protected void Page_Load ( object sender, EventArgs e ){ if ( Request.QueryString[ "oauth_token" ] != null && Request.QueryString[ "oauth_verifier" ] != null ) { string oauth_token = Request.QueryString[ "oauth_token" ]; string oauth_verifier = Request.QueryString[...
1 Apr 2019 by Member 14208282
I need to create a program which logins with Imgur account using oauth2 Any ideas? What I have tried: I have tried everything. I have tried everything.
1 Apr 2019 by MadMyche
I'd start with reading through the API, they even have a chapter on OAuth and it's endpoints: Imgur API[^] And a link to an Android upload sample GitHub - AKiniyalocts/imgur-android: An open-sourced Android imgur api example[^] If you are still having problems, post the code you are using and...
29 Aug 2015 by Ravindar Kumar Gupta
Hello,Currently I am working on a project Google analytics Report service. I have created a project on Google console developer. I got my client I'd and client secret to Authentic ate my application I require access token for authentication. I am stuck here. Please help.
30 Aug 2015 by Peter Leow
Refer to the documentation on Using OAuth 2.0 to Access Google APIs[^]. Find the scenario that fits your requirements, step through the flow, and get a copy of the relevant Google API Client Library[^] and learn the sample codes.
27 Aug 2013 by trujillo66
I've a webforms C# app (VS2012) from OpenAuth template for login using Facebook, Twitter, LinkedIn, ...I need to get the main email from provider using: * ProviderName, * ProviderUserId, * ProviderUserNameDoes DotNetOpenAuth has this capability? or I've to develop using OAuth /...
22 May 2017 by jhulo
Please visit Here there are end to end solution with example. hope it would help you.
26 Jan 2013 by TIKSN Int
I want to implement OAuth/OpenID for Website One and use it in Website Two.I create Sign Up, Sign In, Sign Out, Profile functionality/Pages for Website One and want to use authentication in Website Two like Facebook or Twitter authentication.As an additional information if you got...
26 Jan 2013 by Ed Nutting
Hi there,Why not Google oAuth and research/read about how oAuth works? I mean really, what are you expecting us to do? I suggest you spend a while researching how oAuth works and particularly why the authentication/security works. Your website isn't running over HTTPS - it should be! And...
21 Dec 2014 by Telstra
We are using OpenID mechanism to login into our application using third party credentials. For this we have app id and app secret keys. But when we authorize the request we are facing the access token expiration time out error. Can anybody help me how to get the access token value and set its...
30 Oct 2013 by Bhuvanesh Mohankumar
How to Integrate Facebook API for OAuth 1.0 version of Authentication.I need to Authenticate user using the old OAuth 1.0 method.
30 Oct 2013 by bbirajdar
You need to mention the ASP.NET version in your question.It comes as a built in template for VS 2012 for asp.net 4.5 . For lower versions you can refer http://dotnetopenauth.net/[^]
15 Sep 2015 by Member 11737804
Please help me!I want to post a blog on blogger using c#. I got to know that Google is currently using using APIv3 and Oauth 2.0.I already got the credentials from like: API key, Client Secret etc. but not getting idea what to do next?I did whatever i could but empty hands at...
27 May 2020 by Grupo Microsistemas
Hello, i have an app that send emails correctly, the problem is later that day a error shows up saying "Authentication Error code:334". I think that i need to refresh the token or maybe gmail smtp have a limit for free emails. What I have tried:...
27 May 2020 by Garth J Lancaster
Pretty sure you asked the same thing recently .. this post Q: How do I authenticate with an OAUTH2 access token? · Issue #606 · jstedfast/MailKit · GitHub[^] points out that await credential.RefreshTokenAsync(CancellationToken.None); seems to...
23 Mar 2017 by Member 12003387
I am using OAuth to login for my MVC 5 project using gmail OAuth credentials. Its working fine but here i have to need save login data to database instead of .mdf file (Which was created automatically when solution created).How its possible to save these tables data (i.e. AspNetUserLogins...
23 Mar 2017 by Graeme_Grant
You know that the "create new website" in Visual studio 2012+ actually does this automatically for you right?Here is a video that walks you through it: How to add OAuth and openID using Asp.net MVC 5 - YouTube[^]
4 Aug 2013 by ashok yede201
I am new at MVC 4. I have created MVC 4 application. I am using Basic Authentication. When I am first time loading then it works fine, it asks credentials. But when I make Ajax call from same view without any credentials still it calls Controllers Action. As I am using basic Authentication it...
22 Aug 2013 by ashok yede201
I got its solution,1. you just set basic authentication from IIS2. Set [Authorize] attribute to all actions.3. send user name and password from ajax call.
25 Jun 2015 by Dalvir Saini
I am using follwoign code to submit site map to webmaster tools Google.GData.WebmasterTools.WebmasterToolsService service = new Google.GData.WebmasterTools.WebmasterToolsService("www.test1.com"); service.setUserCredentials("email", "password"); String lWebsite =...
4 Mar 2013 by zahra6688
hi i want to write mvc application to be a server authorization. i want to use DotNetOpenAuth OAuth 2.0 Authorization Server. i add the Nuget to my project, but i don't know how to use it and what is the configuration and setting for using.i need a sample or a document to understand how to...
22 Feb 2017 by Arvind Singh Baghel
i have created a wcf soap service, and i want to implement OAuth2 security in it, for better security. i found many articles on the google but all is releted to WCF REST service OAuth authentication, but my service is SOAP.please let me know the steps from start to end, like how to register...
22 Feb 2017 by Graeme_Grant
Did you try Google Search? Not in your list... Google Search is your friend: oauth2 authentication in WCF soap service[^]The above Google Search turned up this gem: Using OAuth2 with SOAP[^]
12 May 2020 by invidicult
I would like to implement a HTTPS connection for my rest webservice. The HTTP version works as well, but when i try to connect over HTTPS and send a XML file or something else, It already fails when establishing the connection via https. Has someone an idea what i can change to test it over...
12 May 2020 by Member 14829629
Hi, I have a doubt regarding your code. Actually, I am also setting up a self hosting owin console app. I wanted to understand how startupserver and stopserver are being called in your code base?? Answer for SSL configuration is to create a...
1 Feb 2017 by Lokesh Zende
Hi,I am new to OAuth and I am trying to implement it in my application.I have added a relying party by referring [^] this link.As suggested in a link, I have not attached any certificate while creating a relying party.Now in my application, this code redirects me to AD FS login page...
12 Mar 2015 by Member 11520241
Hi, we currently have 2 web applications we want to create SSO service so that they and any other apps we create will have one web service (identity provider?) that will do the authentication. I am quite new to this so bare with my noobness. Of the top of my head i can just create an...
12 Mar 2015 by RajeeshMenoth
Hi,Ref this article :1) Single Sign On (SSO) for cross-domain ASP.NET applications: Part-I - The design blue print2) Single Sign On (SSO) for cross-domain ASP.NET applications: Part-II - The implementation
13 Mar 2015 by Member 11520241
Ok, I figured it out. I basically want to implement OAuth or SAML, butt thats too hardcore for what I currently need , for now Ill just create an internal web service that does the authentication for all our web applications since we will be hosting them on the same server, but for fun ill prob...
30 Aug 2016 by Taiseer Joudeh
This is the third part of the tutorial which will cover Using Azure AD B2C tenant with ASP.NET Web API 2 and various front-end clients. Azure Active Directory B2C Overview and Policies Management – (Part 1) Secure ASP.NET Web API 2 using Azure AD B2C – (Part 2) Integrate Azure Active Dir
16 Apr 2013 by Nupur S. Tiwari
A complete solution that seamlessly integrates Tumblr into your C# .NET website
12 Nov 2019 by Member 13700260
i am facing this problem and trying from last many days ,, i am using .net core 3.0 with google auth i have set up evertying and working fine until call back method (return uri) where i get this error invalid or missing state... What I have tried: public IActionResult ExternalLogin(string...
23 Nov 2015 by Gulshan Asrani
I am facing an issue with LinkedIn Share API 1.0.I have developed an application in ASP.NET in which a user can share a JOB Post on social networks (Facebook, Twitter and LinkedIn).All thing are working fine except LinkedIn, when user is authenticated via LinkedIn he is able to share the...
28 Oct 2013 by Member 10365275
I have posted this query in most forums I know, but have not received an answer or even guidance as to whether this is possible. I have only used VBA before so am pretty lost. My apologies if this is basic (and a bit silly).Is it possible to automate the login to Google?I have an...
29 Oct 2013 by Paulo Augusto Kunzel
It is kind hard to know solve the problem without it being specified. But I hardly believe it would be on google's end. Have you carefully read the api docs?https://developers.google.com/drive/quickstart-java#step_1_enable_the_drive_api[^]https://developers.google.com/drive/about-auth[^]If...
24 Jun 2014 by Ohad Redlich
In this article I explain Spring's implementation for the log-out mechanism
18 Apr 2013 by swapnil_jadhav
I am using following code to Post on facebook from my c# .net application: var fb = new FacebookClient(token); string url = string.Format("{0}/{1}", uid, "feed"); var argList = new Dictionary(); argList["message"] = phought; //message to be posted argList["link"] =...
25 Apr 2013 by Marco Bertschi
There was a discussion about this at stackoverflow.com:see here[^]Seems like it is a know bug, but facebook have not commented it officially, yet.cheers,Marco
7 Oct 2023 by OriginalGriff
So ... you have no idea what you are doing, and no interest in finding out how to do it properly - just throw some code together form internet samples and get someone else to fix it when it doesn't work? That may be exaggerating what you are...
7 Oct 2023 by Jithu_007
I am currently working on implementing OAuth 2.0 in my React application for user authorization and node js back end for api calling as a proxy server to call auth provider.After a successful login on the authorization server's page,inside the...
10 Feb 2014 by David Johns
I am trying to implement oAuth 1.0 in C++/MFC using the CryptoPP library to do the HMAC-SHA1. I can't repeat the example given in RFC 5849. As far as I can tell I have implemented it properly, but I'm getting a different signature. //Example...