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
41
votes
2 answers

OAuth's tokens and sessions in REST

The other minute I read an article on OAuth. It described especially the tokens being exchanged between client and service provider during a series of requests. The article also mentioned that OAuth gains significant popularity in RESTful APIs as…
Boldewyn
  • 81,211
  • 44
  • 156
  • 212
41
votes
8 answers

Keep getting OAuth::Unauthorized error when using oauth and twitter ruby gems

I am using the ruby twitter gem and oauth to gain access to users twitter accounts. In my code, I have: unless @user.twitter_authd? oauth = Twitter::OAuth.new('token', 'secret') session[:twitter_request_token] =…
Tony
  • 18,776
  • 31
  • 129
  • 193
39
votes
5 answers

Java example of how to log in to Google App Engine with a Facebook account using OAuth

I searched a lot, read many blogs, articles, tutorials, but until now did not get a working example of using a Facebook account to log in to my application. I know that I have to use OAuth, get tokens, authorizations, etc... Can anyone share an…
LeandroRezende
  • 403
  • 1
  • 5
  • 8
39
votes
8 answers

Request had invalid authentication credentials. Expected OAuth 2 access token error in cloud speech api

i have followed the google cloud speech api quickstart of requesting api by using curl -s -H "Content-Type: application/json" \ -H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \ …
Patel
  • 531
  • 2
  • 5
  • 11
39
votes
2 answers

Asp.Net MVC 5 Owin Twitter Auth throwing 401 Exception

I have set up OAuth authentication using the Owin middleware based off the default project that gets created when starting a new Web project using "Individual accounts" authentication. I've tweaked it a bit, but Facebook and Google are working…
MikeAtCodeSmart
  • 591
  • 7
  • 14
38
votes
3 answers

Can I use AWS cognito to provide a open id connect endpoint?

I want to use AWS cognito as a OpenId connect provider.My AWS cognito IDP will intern call my another OpenId provider to authenticate the user. It will then create its new token and hand over to callers as its own. The OpenID provider used…
user93796
  • 18,749
  • 31
  • 94
  • 150
38
votes
4 answers

oAuth ASP.NET Membership Provider

Are there any recommended resources for implementing a custom membership provider that uses oAuth? The goal would be to have users to log into my ASP.NET MVC application using their existing oAuth credentials. After the user is authenticated, I'd…
Eric Tobia
  • 774
  • 1
  • 9
  • 13
37
votes
3 answers

How do I connect to the Google Calendar API without the oAuth authentication?

I have been studying the Google Calendar API and the docs on authentication (http://code.google.com/apis/calendar/v3/using.html#auth). It seems that the use case mentioned here is writing an application that accesses the user's calendar. However, I…
Jon Hargett
  • 1,133
  • 2
  • 11
  • 19
37
votes
7 answers

How do I develop against OAuth locally?

I'm building a Python application that needs to communicate with an OAuth service provider. The SP requires me to specify a callback URL. Specifying localhost obviously won't work. I'm unable to set up a public facing server. Any ideas besides…
CoolGravatar
  • 5,408
  • 7
  • 35
  • 42
37
votes
5 answers

I am getting "code challenge required" when using IdentityServer4

I am trying to redirect to IdentityServer for authorization, and getting "code challenge required" in redirect URL. An error message shows invalid_request with code challenge required, and also my redirect url…
37
votes
1 answer

WordPress rest API OAuth curl commands

I have the WordPress rest API and WordPress OAuth server setup plugins setup and am trying to authenticate using http://sevengoslings.net/~fangel/oauth-explorer/ every time the call content is not giving me the OAuth token or OAuth secret that I…
0101
  • 1,036
  • 2
  • 14
  • 24
36
votes
4 answers

AWS API Gateway - using Access Token with Cognito User Pool authorizer?

I am configuring an app with various frontends (mobile and web apps) and a single API backend, powered by Lambda and accessed via AWS API Gateway. As I'm planning to use Cognito to authenticate and authorize users, I have set up a Cognito User Pool…
Harry
  • 4,660
  • 7
  • 37
  • 65
36
votes
5 answers

How to persist an OAuth2 token (or use a refresh token) in Postman collections?

The goal Be able to run a collection without going through the authorization process of every call individually prior to running the collection. What I've attempted/noticed When using the OAuth2 authorization helper in Postman, I haven't discovered…
Nate Ritter
  • 2,386
  • 3
  • 20
  • 28
36
votes
6 answers

Oauth for Google API example using Python / Django

I am trying to get Oauth working with the Google API using Python. I have tried different oauth libraries such as oauth, oauth2 and djanog-oauth but I cannot get it to work (including the provided examples). For debugging Oauth I use Google's Oauth…
DrDee
  • 3,549
  • 6
  • 30
  • 37
36
votes
1 answer

How can I make the Mylyn GitHub Connector for Eclipse run authenticated requests?

I'm using the very cool Github Mylyn Connector for Eclipse Indigo. However, since I use it for many projects on GitHub, I run very quickly into the 60 requests per second rate limit enforced on unauthenticated requests against the GitHub v3 API. The…
Francois G
  • 11,957
  • 54
  • 59