Questions tagged [signpost]

Signpost is a Java OAuth-1.0 framework under APL-2.0 license written and maintained by Matthias Käppler. Since OAuth-1.0 is deprecated in favor of OAuth-2.0 - use it only for legacy projects (until it's not updated to support OAuth-2.0).

Signpost is a Java OAuth-1.0 framework under APL-2.0 license written and maintained by Matthias Käppler.

Since OAuth-1.0 is deprecated in favor of OAuth-2.0 - use it only for legacy projects (until it's not updated to support OAuth-2.0).

Project page is http://code.google.com/p/oauth-signpost/. Source code could also be found on github at https://github.com/kaeppler/signpost.

86 questions
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
13
votes
3 answers

What is the right way to sign POST requests with OAuth-Signpost and Apache HttpComponents?

I'm currently using the OAuth-Signpost Java library to sign requests sent from a client to a server which implements OAuth authentication. When making GET requests (using HttpURLConnection) everything works fine: requests are signed, parameters are…
randomau5
  • 131
  • 1
  • 1
  • 3
8
votes
2 answers

Android OAuth: Exception on retrieveAccessToken()

I'm setting up OAuth for my Android app. To test it I did the following: Added signpost-core-1.2.1.1.jar and signpost-commonshttp4-1.2.1.1.jar to my project, added the variables "CommonsHttpOAuthConsumer consumer" and "CommonsHttpOAuthProvider…
Manuel
  • 8,135
  • 10
  • 32
  • 29
6
votes
2 answers

Android Tumblr oAuth Confusion

I'm trying to implement the Tumblr API in an Android app. I'm really getting stuck with authorizing a user so that they can do things such as post and view their dashboard. I don't really understand oAuth, and the Tumblr API documentation sort of…
Nick
  • 6,900
  • 5
  • 45
  • 66
6
votes
1 answer

Can I set signposts before and after a call in objective-c?

I watched Getting started with Instruments and there they show the usage of Signposts. The example is written in Swift but I'd like to use them with my Objective-C project. In these example the signpost start and end are set inside the function…
Anubis
  • 653
  • 1
  • 7
  • 16
6
votes
1 answer

Android Dev - Callback URL not working... (0_o)

I'm working on an android application for my research, and I am working with OAuth (signpost library) to gain access to user data from a web service which is also a part of the development process. I am able to flow through the common steps of…
5
votes
2 answers

Android Tumblr Oauth-signpost 401

Okay, so, I am making a Tumblr client for Android, I've been trying and failing to get OAuth working for about a week now. Here's how its going: User fires up the app. Main activity's onCreate does this: settings = getSharedPreferences(PREFS_NAME,…
Nick
  • 6,900
  • 5
  • 45
  • 66
5
votes
0 answers

OAuth 1.0 Libraries for Android (java)

I'm trying to access user data from a site that supports OAuth 1.0 without callbacks. I'm using the signpost library and I'm not able to retrieve the access token because the site I'm trying to connect to doesn't require the user to specify a…
user836200
  • 655
  • 2
  • 12
  • 20
4
votes
1 answer

Refresh Yahoo Oauth Access Token using grails-oauth plugin based on sign-post api

I am using grails oauth plugin. Which is providing me yahoo's access_token successfully. But the problem is -- this token (from yahoo) has validity of 1 hr only. And after that we need to refresh it. And going through their documentation it seems…
Salil
  • 91
  • 6
4
votes
0 answers

"Request token or token secret not set in server reply." when attempting to get the request token

I'm using the Twitter API with Signpost and Twitter4J on Android. My code fails here: consumer = new CommonsHttpOAuthConsumer(TWITTER_KEY, TWITTER_SECRET); provider = new…
Ross
  • 46,186
  • 39
  • 120
  • 173
4
votes
3 answers

Getting 401 when requesting access token with signpost within android

Here is my code, i keep getting an exception "Authorization failed (server replied with a 401). This can happen if the consumer key was not correct or the signatures did not match." on this line 'provider.retrieveAccessToken(consumer, verifier);'. I…
Wez
  • 240
  • 1
  • 3
  • 11
4
votes
0 answers

Yelp V2 API using SignPost from Java - INVALID_SIGNATURE

Trying to call the v2 api from a Java app (Android), utilizing the SignPost oauth library. I have extracted my code into a standalone version that can be run from the command line (no dependencies on Android). Please have a look and let me know…
Nicholas Hirras
  • 2,592
  • 2
  • 21
  • 28
4
votes
2 answers

SignPost or Twitter4j for Sign-in with Twitter (OAuth)?

I read a lot about signpost, and then went back to Twitter4J with which I have created my twitter applications when OAuth wasn't necessary. I am now confused whether I should use signpost or Twitter4J's method of OAuth authentication. I have read…
Aman Alam
  • 11,231
  • 7
  • 46
  • 81
4
votes
3 answers

OAuth 1.0 Requests with Retrofit in Android

I am trying to access a Magento REST API in my Android app, using Retrofit. What have I tried: SignPost and OkHttp to sign request using these classes : https://gist.github.com/f2prateek/0deb2d7ddea43e21d39b Custom Headers having OAuth values But…
Aman Alam
  • 11,231
  • 7
  • 46
  • 81
4
votes
0 answers

How can I validate a OAuth signature received in a request using Signpost Java library

I'm using SignPost successfully in a project to sign outgoing requests (with HttpClient). Now I need to validate/verify the signature in the requests I receive. I have no idea how to do it and I can't find any code example. Can anybody point me to…
icordoba
  • 1,834
  • 2
  • 33
  • 60
1
2 3 4 5 6