Questions tagged [2-legged]

2-Legged oauth is a mechanism for third party applications, mostly mobile and desktop clients, of getting user protected resource by getting access token in exchange of user and password.

47 questions
2
votes
0 answers

Adding a secondary authentication under OAuth?

Greetings! Say I have fleet of mobile devices that are the consumers in a three-legged OAuth. The user authorizes each device, but then hands them over to other people. I would like to have these people then need an additional password to interact…
2
votes
0 answers

Is 2 legged oauth possible with Rauth or alternative python 3 library?

I have been searching for a way to implement 2 legged oauth in python 3 to work with the brightcloud api. They offer several code examples using java, php, ruby, .NET C# here: https://bcws.brightcloud.com/code-samples.php. I tried following the same…
Fraser
  • 31
  • 1
  • 3
2
votes
1 answer

Getting Forge 2-legged authentication using Cross request

I'm trying to create a simple html page to display a uploaded model to forge. For initialize the forge viewer it required the access-token. For request the access token I'm using the 2-legged oAuth on a Cross request(because I'm making the POST on…
2
votes
1 answer

What is endpoint for oauth2_access_token for linkedin posting a job API?

Does LinkedIn support OAuth 2.0 grant_type "client_credential" rather than "authorization_code" for closed API? i.e. does LinkedIn support OAuth 2.0 fully? What is the endpoint for get oauth2_access_token? e.g.…
Allen Wayne
  • 121
  • 6
2
votes
0 answers

2-Legged to Google via oAuth DevDefined (.net)

Has anyone been able to get oAuth working with the gMail feed using the DevDefined oAuth library? I'm having a really hard time figuring out how to get this working. Seems like I either get a 401, or 411 returned. I used this as a template, but it…
2
votes
1 answer

Admin-sdk with marketplace does not work

I was trying to build a market place application with admin-sdk. Reading the docs, it looks like two legged authentication is the only way to go as far as market place apps are concerned. Wanted to check if the current user is an admin so for…
George Thomas
  • 1,246
  • 2
  • 11
  • 14
2
votes
2 answers

oAuth in PHP to make 2 legged request

I am currently stuck trying to make requests to a service's api using a 2 legged oAuth request using PHP. I am using the PHP library found here: http://code.google.com/p/oauth-php/ and there seems to be absolutely no documentation anywhere online…
navitronic
  • 563
  • 3
  • 15
2
votes
1 answer

Python GAE app using 2-legged OAuth and 3-legged OAuth at same time

I'm coding a Python - Google App Engine application. There are 2 important things this app must do: Write in user's calendar. Write in user's profile (working with users in a Google Apps domain) First operation is easy. If I understood OAuth,…
1
vote
1 answer

Google API 2 legged Oauth : "Token invalid - Invalid AuthSub token."

I've based my code on http://gdatatips.blogspot.com/2008/11/2-legged-oauth-in-php.html. Here's my code, I want to work with the Google Doc (Document List) API : $endpoint = 'https://www.google.com/accounts/OAuthGetRequestToken'; …
FMaz008
  • 11,161
  • 19
  • 68
  • 100
1
vote
1 answer

2-legged OAuth implementation in C#

I'm trying to implement a two-legged OAuth authentication, so I can get to create a User on a website. I managed to craft this ruby code that performs that task, but I need to convert it to C#. I'm getting a 401 error when making the last POST in…
Daniel
  • 11,315
  • 4
  • 19
  • 15
1
vote
0 answers

How to get userinfo using only access_token ( 2-legged Oauth 2.0 and google client API - PHP)

I am working on a restful API using PHP, this API will be used by a mobile application(iOS & Android) and I am trying to implement Google API login and authorize mobile users to login and use the app. Here the flow I am trying to achieve : User…
Mohamed Salem Lamiri
  • 5,767
  • 6
  • 34
  • 47
1
vote
1 answer

Access Google Directory API from a Marketplace App using 2lo

I've spent the past couple of days trying to access Google's Directory API in Ruby but haven't been able to get it working. According to this document the Directory API can be authorized using 2lo: If your application has certain unusual…
1
vote
1 answer

How to build a Rails REST API with 2-legged OAuth?

I've been struggling for two days with OAuth and RSpec to get a properly tested RESTful API using a 2-legged OAuth authentication so I thought about posting it here and prevent more pain to happen. So here it is, in the answer.
Jeremy F.
  • 1,346
  • 12
  • 30
1
vote
1 answer

2-legged OAuth 1.0a in Objective C - ios app development

I am developing an iphone application in Objective-C and quite new in it. I just have the request URL, consumer key and secret. How can I do 2 legged authentication, could you provide me some code please. I already checked AFNetworking project and…
Ozeksi
  • 27
  • 5
1
vote
1 answer

Does Google support 2-Legged OAuth 2.0 for IMAP?

Does Google support 2-Legged OAuth 2.0 for IMAP? I know Google supports 3-legged OAuth 2.0 for IMAP, but I can't find any documentation for 2-Legged OAuth 2.0 for IMAP.
Saqib Ali
  • 3,953
  • 10
  • 55
  • 100