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
36
votes
1 answer

Vkontakte API using OAuth does not work with Captcha

Vkontakte API rejects requests with Captcha. Here is the example what I do. After the third request I get: Captcha error (14) - Captcha needed. According to documentation it's sufficient to add captcha_sid and captcha_key parameters to the…
terrafant
  • 561
  • 5
  • 10
36
votes
3 answers

What's the purpose of the client secret in OAuth2?

I have an app that offers an API. This app is an OAuth2 provider. I want to access this API (read & write) with a client-side only app. I'm using JSO to make this easier. It works great. The thing is, I don't have to enter my client secret (of the…
Robin
  • 21,667
  • 10
  • 62
  • 85
35
votes
2 answers

Getting started with Twitter\OAuth2\Python

I'm attempting to connect to twitter using python, and I'm finding it really frustrating. Everything I read suggests that I need a consumer key, a consumer secret, an access key and an access secret - for example: Using python OAUTH2 to access…
Sean
  • 1,698
  • 2
  • 16
  • 22
35
votes
11 answers

AWS Cognito; unauthorized_client error when hitting /oauth2/token

Steps taken so far: Set up new user pool in cognito Generate an app client with no secret; let's call its id user_pool_client_id Under the user pool client settings for user_pool_client_id check the "Cognito User Pool" box, add https://localhost as…
35
votes
6 answers

multiple authentication backends configured and therefore must provide the `backend` argument or set the `backend` attribute on the user

first of i am new to django/python . i am trying to create a login website that allows the user to register an account and verify via email or directly login via fb or google(Oauth) i receive the error when i click on the validation url sent to the…
gaby awad
  • 1,068
  • 1
  • 9
  • 17
35
votes
6 answers

OAuth for Desktop apps?

i wonder how do desktop apps without any domain names use oauth? or is it not supposed to be used this way? if so what do i use? say for tumblr they have an authentication api so i will have to put the username and password in the url/query string?…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
35
votes
2 answers

Basic Authentication with a Guid token for REST api instead of username/password

Overview I am developing a mobile application using PhoneGap with REST API for the backend. The REST API won't be utilised by third-party developers, but will be application-specific, so there is no need for oAuth to be implemented. Hence, I am…
badikumar
  • 807
  • 2
  • 8
  • 18
34
votes
6 answers

Spring OAuth redirect_uri not using https

I have a Spring Boot 1.3.0 application with Spring Security OAuth included as a sort of SSO integration. The problem is that the application is running in a non-SSL environment with a non-standard port behind a load balancer (F5) that forces SSL and…
Zack Hoffmann
  • 641
  • 1
  • 6
  • 7
34
votes
4 answers

DotNetOpenAuth oAuth in ASP.NET MVC

I'm trying to understand how to apply the oAuth consumer library from DotNetOpenAuth in the context of ASP.NET MVC. oAuth is new to me, and the library doesn't seem very simple. Does anyone have a sample of leveraging this library, for this usage,…
nikmd23
  • 9,095
  • 4
  • 42
  • 57
34
votes
4 answers

What OpenID Connect authorization flow to authenticate mobile app users?

I am building a cross-platform mobile app that interacts with a RESTful API, and I want to use OpenID Connect to authenticate my users. I will be building my own OpenID Connect provider server. OpenID.net claims that: OpenID Connect allows for…
PGleeson
  • 381
  • 1
  • 3
  • 9
34
votes
8 answers

Possible to test Google social login locally?

I want to test the Google Social login system on my local machine. However when I create a new OAuth button: 'Create New Client ID' it requires me to fill in the Authorized redirect URI which needs to be a valid address (ends with .com or…
jonprasetyo
  • 3,356
  • 3
  • 32
  • 48
34
votes
3 answers

Secured RESTful API that can be used by Web App (angular), iOS and Android

I have to lay out a plan to develop a RESTful API (Python/Flask) that could be used by our future web app (Angularjs) and mobile apps (iOS/Android). I have been researching for three days and have come across several scenarios: Using HTTPS is one…
Houman
  • 64,245
  • 87
  • 278
  • 460
33
votes
1 answer

Should clients get OAuth 2 access tokens using GET or POST?

The OAuth 2.0 draft v2-22 Section 3.2 says: The client MUST use the HTTP "POST" method when making access token requests. However, if you look at the Facebook and Foursquare OAuth2 implementations, they ask the clients to make a simple GET…
Spike
  • 5,040
  • 5
  • 32
  • 47
33
votes
10 answers

encrypt data in SharedPreferences

Im currently developing a framework for oAuth 1 and 2 access to webservices and my question is, how do i store sensitive data like an oAuth access key in a secure way? the problem with this keys is that some platforms like twitter use a permanent…
Simon
  • 13,173
  • 14
  • 66
  • 90
33
votes
2 answers

OpenID Connect Authentication Flow (using KeyCloak) in a Mobile App + REST Backend

I'd like to secure the REST-backend of our mobile app using OpenID Connect. In short, users of the app should authenticate themselves (username/password) before fetching sensitive data over the REST backend (multiple services). After initial…
Kim Zeevaarders
  • 732
  • 1
  • 7
  • 21