Questions tagged [oauth]

OAuth (Open Authorization) is a specification for client applications to access protected resources on behalf of a user. It was developed as an alternative to users handing out their login credentials to third-party applications.

Description

OAuth is an open standard for authorization. OAuth provides client applications a 'secure delegated access' to server resources on behalf of a resource owner. It specifies a process for resource owners to authorize third-party access to their server resources without sharing their credentials. Designed specifically to work with Hypertext Transfer Protocol (HTTP), OAuth essentially allows access tokens to be issued to third-party clients by an authorization server, with the approval of the resource owner, or end-user. The client then uses the access token to access the protected resources hosted by the resource server. OAuth is commonly used as a way for web surfers to log into third party web sites using their Google, Facebook or Twitter passwords, without worrying about their access credentials being compromised.

OAuth is a service that is complementary to, and therefore distinct from, OpenID. OAuth is also distinct from OATH, which is a reference architecture for authentication, not a standard.

Resources

20112 questions
77
votes
4 answers

What is the best OAuth2 C# library?

It seems like many app providers are using OAuth2 to allow API access, such as Twitter and Facebook. Does anyone use a good library to do OAuth2 processing that is general enough to use across all applications?
TruMan1
  • 33,665
  • 59
  • 184
  • 335
77
votes
3 answers

How to include Authorization header in cURL POST HTTP Request in PHP?

I'm trying to access mails of a user through Gmails OAuth 2.0, and I'm figuring this out through Google's OAuth 2.0 Playground Here, they've specified I need to send this as a HTTP REQUEST: POST /mail/feed/atom/ HTTP/1.1 Host:…
user1437671
76
votes
1 answer

Authentication with React Native and API backend

I'm trying to wrap my head around oauth with a React Native app and a separate NodeJS/Express API backend. I understand https://github.com/adamjmcgrath/react-native-simple-auth offers authentication for a React Native app and http://passportjs.org/…
wwwuser
  • 6,282
  • 8
  • 52
  • 64
71
votes
4 answers

Is there a Node OAuth Server Implementation

I only found the oauth client library for nodejs. Does anybody know where I can find a server implementation? Thanks, Hao.
agate
  • 956
  • 1
  • 7
  • 13
71
votes
13 answers

Facebook Oauth Logout

I have an application that integrates with Facebook using Oauth 2. I can authorize with FB and query their REST and Graph APIs perfectly well, but when I authorize an active browser session is created with FB. I can then log-out of my application…
Derek Troy-West
  • 2,469
  • 1
  • 24
  • 27
70
votes
2 answers

OAuth Authorization Service in ASP.NET Core

In Web API 2, you used to be able to create an endpoint to issue a token by setting up an OAuth Authorization Server via middleware like below: //Set up our auth server options. var OAuthServerOptions = new OAuthAuthorizationServerOptions() …
swannee
  • 3,346
  • 2
  • 24
  • 40
69
votes
13 answers

Firebase: This domain is not authorized

I imported Firebase JS v3 API and used to initialize Firebase using: firebase.initializeApp(config); However the app failed to load correctly via web browser on localhost, resulting in the following error: Error: This domain is not authorized for…
user6039980
  • 3,108
  • 8
  • 31
  • 57
68
votes
6 answers

Authenticating with OAuth2 for an app *and* a website

I'm developing a website that is primarily accessed via an app, and I want to use OAuth2 for user registration and authentication. Since it is an Android app I will start using Google's OAuth2 stuff, since it provides a decent UI on Android. Google…
Timmmm
  • 88,195
  • 71
  • 364
  • 509
66
votes
3 answers

Multiple Scope Values to oauth2

I try to post several scope values to allow my application for some google service... I tried with two input field
Christophe Debove
  • 6,088
  • 20
  • 73
  • 124
65
votes
2 answers

What does "offline" access in OAuth mean?

What exactly does the word "offline" mean with regard to the offline access granted by an OAuth server? Does it mean that the resource server will return data about the user even when the user is logged out of the third-party application or when the…
Water Cooler v2
  • 32,724
  • 54
  • 166
  • 336
65
votes
6 answers

How to change Google consent screen email?

I created new Google Play game and would like to change the email displayed on Google Consent Screen. Google Developers Console screen has a dropdown to choose email, but just one - admin's email - is here. I've added another user as the owner, but…
LA_
  • 19,823
  • 58
  • 172
  • 308
64
votes
6 answers

Make Android WebView not store cookies or passwords

I use an Android WebView for Twitter OAuth: Twitter asks the user to log in and authorize the application, I retrieve the access token and persist it in my application. I have no need (and do not) store the user password, but the WebView keeps…
Thilo
  • 257,207
  • 101
  • 511
  • 656
64
votes
6 answers

SFAuthenticationSession/ASWebAuthenticationSession and logging out

I'm planning to switch an app from the old OAuth flow with the SFSafariViewController to the new flow with iOS 11's SFAuthenticationSession. Logging in isn't an issue, the transfer to the new API took me a few minutes to implement. However logging…
JanMensch
  • 1,720
  • 1
  • 18
  • 27
63
votes
5 answers

How to get dummy google access token to test oauth google api

Is there any way in which I can generate access token to test oauth for logging in with gmail? I have created a google app, and got the client and secret ids. I know facebook will allow you to do so from this url…
user123456
  • 2,524
  • 7
  • 30
  • 57
62
votes
9 answers

Using Google OAuth2 with Flask

Can anyone point me to a complete example for authenticating with Google accounts using OAuth2 and Flask, and not on App Engine? I am trying to have users give access to Google Calendar, and then use that access to retrieve information from the…
emning
  • 760
  • 1
  • 6
  • 9