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

registration-url parameter fails for fb:login-button if oauth 2.0 is enabled

I'm trying to get the registration flow for Facebook login working. Here's a bare-bones example: My Facebook Login Page
Shaun Budhram
  • 3,690
  • 4
  • 30
  • 41
29
votes
1 answer

why isn't it possible to steal an access token?

I'm learning OAuth and I have a question in head I can't find an anwser.. I understood request token to authorize or not an application to use the API. But once the user got an access token, what happens if someone steal his access token? Imagine…
Julien
  • 401
  • 1
  • 5
  • 12
29
votes
4 answers

How to authenticate a POST request from a chrome extension to my app with JSON web tokens?

Context My HapiJS web application is currently using OAuth 2.0 to access Google APIs. Once a user authenticates in the app, the server generates a JSON Web Token (JWT) which is stored on the client and sent back in the Authorization header of…
Anita
  • 2,741
  • 27
  • 28
29
votes
1 answer

owin oauth send additional parameters

I'm sure this is possible but not certain how to achieve. I have an OWIN OAUTH implementation that currently accepts the users Username and Password and authenticates them against a database. I would like to extend this to pass in a SmartCard Uid to…
Neil Stevens
  • 3,534
  • 6
  • 42
  • 71
29
votes
3 answers

Architecturing API keys and access tokens

I have a question regarding how I should architecture a REST API using access token and API keys. I have an API that needs authentication. I want to enable two use cases: The user logs into the interface using OAuth2 (password grant), and is…
Michael Gallego
  • 1,746
  • 1
  • 20
  • 29
29
votes
2 answers

chrome.identity User Authentication in a Chrome Extension

I'm trying to write a chrome extension that requires user authentication. Google's tutorial suggests that I need to upload to the web store first to get a key: Login to the Google APIs Console using the same Google account used to upload your…
Vincent
  • 1,454
  • 2
  • 17
  • 24
29
votes
3 answers

Twitter API - Logout

I'm using OAuth in my web app, and users can login with twitter. I want to add "switch twitter account" button, which actually clears the session and then opens the authorize_url. As clearing the session in my web app doesn't log out of twitter, the…
elado
  • 8,510
  • 9
  • 51
  • 60
29
votes
5 answers

HttpURLConnection.getResponseCode() returns -1 on second invocation

I seem to be running into a peculiar problem on Android 1.5 when a library I'm using (signpost 1.1-SNAPSHOT), makes two consecutive connections to a remote server. The second connection always fails with a HttpURLConnection.getResponseCode() of…
emmby
  • 99,783
  • 65
  • 191
  • 249
28
votes
2 answers

Questions About Consuming Your Own API with OAuth

I'm building a RESTful API for a project I'm working on and I'd like to make the main application consume the API because: It will result in having one set of code to maintain Should we decide to expose the API for 3rd party devs it will already be…
Steve
  • 1,112
  • 8
  • 12
28
votes
5 answers

What is the standard method for generating a nonce in Python?

Can someone share the best practices for creating a nonce for an OAuth request in Python?
charliesneath
  • 1,917
  • 3
  • 21
  • 36
28
votes
5 answers

How to use SHA256-HMAC in python code?

I am taking message and key from this URL import hmac import hashlib import base64 my =…
Venkatesh Panabaka
  • 2,064
  • 4
  • 19
  • 27
28
votes
3 answers

Twitter OAuth via a popup

I was wondering how to do twitter OAuth via a popup, i.e. load up the Oauth page in a popup and make the callback close the child window and reload the parent window. Edit: OK iframes are bad, but how would you accomplish the above, I notice…
MatthewFord
  • 2,918
  • 2
  • 21
  • 32
28
votes
1 answer

Authorizing command line tool to consume Google APIs (through OAuth2.0 or anything else)

I think I understand how OAuth 2.0 works in the context of a mobile app or website - neither is my case. I have a C++ command line application that I want to give access to one of the Google Services (Google Fusion Tables) but I think this question…
rburhum
  • 1,611
  • 2
  • 17
  • 33
28
votes
1 answer

A good tutorial for using AccountManager in Android?

Does anyone know of any good tutorials for using AccountManager in android, basically what I'm trying to do is request a OAuth2 token to use with a google api, any suggestions would be appreciated :)
William L.
  • 3,846
  • 9
  • 53
  • 72
28
votes
5 answers

OAuth 2.0 with Google Analytics API v3

I used to be able to query the Google Analytics API with my account's login & password. Google is now using OAuth for authentication which is great... The only issue is that I only need ONE access token. I don't wanna allow other users to fetch…
lpdahito
  • 556
  • 2
  • 10
  • 16