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
6
votes
4 answers

OAUTH using PHP's PECL OAUTH - Cant use POST when using method getRequestToken()?

I'm using PECL OAuth when trying to authenticate to an API. Sample Code:
Ben Waine
  • 1,650
  • 3
  • 21
  • 34
6
votes
1 answer

Google Sign in for Android - Release vs Debug

So currently, I am trying to implement google sign-in .. I have followed the instructions on developer.android.com .. I am having a weird issue and I see several people on SO talk about this but it never gets anywhere so I am posting this here ... I…
Arjun
  • 322
  • 4
  • 20
6
votes
1 answer

What is Auth'n'auth?

Requesting my keys on developer.eBay, I see a message that invites me to enable OAuth. But the message also speaks about Auth'n'auth. Searching for it on Google doesn't give me any information about what this is, so I'm asking here. The complete…
Aerendir
  • 6,152
  • 9
  • 55
  • 108
6
votes
1 answer

How to login with username/password using OAuth2 and microsoft login and HTTP request

How to login with username/password (end-user credentials) using OAuth2 and Microsoft login https://login.microsoftonline.com/{app-id}/oauth2/token
ColacX
  • 3,928
  • 6
  • 34
  • 36
6
votes
3 answers

127.0.0.1 This site can’t provide a secure connection

I am creating an ASP.NET web application and currently running it with Visual Studio's built in IIS Express. It normally starts up on localhost and runs just fine. However, one of the external API's I'm calling requires the callback of my…
Wes Thompson
  • 462
  • 1
  • 5
  • 21
6
votes
1 answer

OAuth 2.0 service to service authentication and best practices

I have to deal with such type of auth flows: Create auth flows for Web users; In the same way deal with service to service authentication Briefly following diagram can depict main components that we'll have: For users Authentication we'd like to…
user1459144
  • 4,439
  • 5
  • 28
  • 35
6
votes
1 answer

Is OAuth more secure than Basic Auth for server to server communication

Is OAuth more secure than Basic Auth through HTTPS for server to server dialog? I mean, if I want to do some API request from server A to server B with OAuth, I have to store some auth data (key, secret, etc.) on server A. Then using these auth…
rap-2-h
  • 30,204
  • 37
  • 167
  • 263
6
votes
4 answers

C# Google Drive APIv3 Upload File

I'm making a simple Application that Links to a Google Drive Account and then can Upload Files to any Directory and respond with a (direct) download Link. I already got my User Credentials and DriveService objects, but I can't seem to find any good…
John Smith
  • 73
  • 1
  • 2
  • 8
6
votes
1 answer

Is there a way to generate an access token from within Identity Server without using the endpoints?

I'm building an identity server deployment (Identity Server 4, hosted in an ASP.NET Core MVC application). As a part of the new user registration process, I need the identity server application to make a request against another API. I'd like to…
Ben Collins
  • 20,538
  • 18
  • 127
  • 187
6
votes
2 answers

Get user email from facebook in asp net

I'm trying to get user name and user email from facebook. I read a lot of information on this topic and this is my final code that works for some reason only on my facebook app admin account: public partial class Startup { public void…
levkaster
  • 2,670
  • 2
  • 25
  • 32
6
votes
3 answers

Consume Office 365 REST API Without UI

I need to push calendar entries in to a client's Outlook account. This is fairly straight forward with Exchange. You just authenticate with a user that has access, and then you can push entries in to other user's accounts. It seems to be completely…
Christian Findlay
  • 6,770
  • 5
  • 51
  • 103
6
votes
1 answer

Where do I store the OAuth refresh token in a browser based application

I'm storing both the access token and refresh token in local storage. Is this correct? Detail: I have an angular 2 application. The user loads my application, and then authenticates (username, password) with my api. They are provided with an access…
Nathan Cooper
  • 6,262
  • 4
  • 36
  • 75
6
votes
2 answers

Single Page Web Apps, CORS and security concerns

The situation I am writing a Single-Page-Web App (using Angular). Lets call it SPA Another team-mate is writing some APIs (using Node.js). Lets call is Server My SPA is to Login to the Server using login/passwd, and do some stuff My team-mate has…
Amarsh
  • 11,214
  • 18
  • 53
  • 78
6
votes
1 answer

Android Drive API OAuth BAD_AUTHENTICATION

I'm having a problem with the Google Drive REST v3 android API. The OAuth token is getting a BAD_AUTHENTICATION result. Here's the connection code I'm using. It can also be noted that the OAuth consent screen is not showing up, and after a short…
widavies
  • 774
  • 2
  • 9
  • 22
6
votes
1 answer

Why not have the public key in JWT payload for convenience

As I understand it: to check the validity of a JWT created using an asymmetric public/private key encryption algorithm, you require the public key along with the JWT header, claim (aka payload) and signature. The JWT header and claim can be decoded…
alexkb
  • 3,216
  • 2
  • 30
  • 30