Questions tagged [scribe]

Scribe is a simple OAuth library for Java

Scribe is a library for OAuth-signing HTTP requests.

It's written in java but you can use it from other JVM languages as well (like Groovy or Scala).

It's really really simple and has low memory footprint which makes it the ideal choice for Android applications.

You can find more info about Scribe in the home page:

https://github.com/scribejava/scribejava

334 questions
4
votes
1 answer

How do I use org.scribe.oauth to connect to the tumblr API?

I've followed the tutorial given on the org.scribe page but it appears that out-of-band callbacks aren't supported. Can someone point me in the right direction as to how to solve this? Moreover, a more comprehensive tutorial or documentation for the…
4
votes
4 answers

org.scribe.exceptions.OAuthException: Response body is incorrect. Can't extract token and secret from this: 'Invalid request token'

can someone help me with this code? Everything goes great till this point. Token accessToken = service.getAccessToken(requestToken, verifier); After that I get this error. ERROR com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor- …
Gogum
  • 41
  • 1
  • 4
4
votes
2 answers

Flickr Oauth Login using Scribe Library

I'm pretty new to android, please forgive any mistake. package net.schwiz.oauth; import org.json.JSONException; import org.json.JSONObject; import org.scribe.builder.ServiceBuilder; import org.scribe.builder.api.TwitterApi; import…
Desire
  • 563
  • 4
  • 13
  • 28
4
votes
1 answer

How to authorize in twitter using android AccountManager?

How to authorize in twitter using android AccountManager? AccountManager am = AccountManager.get(this); Account[] accts = am.getAccountsByType(TWITTER_ACCOUNT_TYPE); if(accts.length > 0) { Account acct = accts[0]; am.getAuthToken(acct,…
pleerock
  • 18,322
  • 16
  • 103
  • 128
3
votes
2 answers

scribe does not support refresh_token in oauth 2.0 right?

I found that scribe does not extract refresh_token in access token. The OAuth 1.0 extractor contains: Preconditions.checkEmptyString(response, "Response body is incorrect. Can't extract a token from an empty string"); String token =…
Shisoft
  • 4,197
  • 7
  • 44
  • 61
3
votes
1 answer

"java/lang/NoClassDefFoundError: java/lang/Object" when runs JNI program

I am so pain for installing scribe & hdfs. worth to appreciate, I solved most of the problems. However, I am stuck here. I install libhdfs , and I write a "Hello world" test: #include #include using namespace std; #include…
renenglish
  • 728
  • 1
  • 9
  • 18
3
votes
3 answers

Removing oauth_token from request header in Scribe

We're trying to connect with another company's custom API which uses two-legged OAuth to authenticate a request and send us a response. At the moment the code we have is sending a request but it's not being authenticated at the other end and so…
David Castle
  • 149
  • 1
  • 3
  • 10
3
votes
2 answers

Single sign on for google api's using Scribe?

Is there anyway to retrieve the Google Oauth refresh_token using Scribe? I am building an app that requires several scopes mixed between java Gdata and Google api java client libraries -- and I am looking for a Single Sign On (SSO) when a user of my…
Java Guy
  • 1,005
  • 14
  • 20
3
votes
0 answers

Scribe OAuthException No Response returned for Service.getRequestToken() after ServiceBuilder.build()

I am trying to get the authorization url to allow my users to authorize my app for twitter api calls. I have registered the app at Twitter and gotten the Consumer Key and Secret. scribe-1.1.3.jar and commons-code-1.5.jar are in the Classpath. I am…
3
votes
1 answer

How to work with an expected return type of "java.lang.Class"?

I thought I'd try to write an R interface to Scribe (mature OAuth library for Java by Pablo Fernandez) as a way of refreshing myself on Java (not used it in 8 years), learning rJava and to make better use of the Twitter API. But mostly because it's…
Tony Breyal
  • 5,338
  • 3
  • 29
  • 49
3
votes
1 answer

Dropwizard, Scribejava, Oauth 2.0 and Github

I'm attempting to authenticate with GitHub via oauth using the scribejava library in a Dropwizard (I guess jetty) application. I'm not overly sure of what I'm doing as I'm new to all this but I've hacked together the following resource class from a…
Chris
  • 3,437
  • 6
  • 40
  • 73
3
votes
1 answer

Magento oauth with android

I am using scribe library to register android with Magento. But I am getting error: org.scribe.exceptions.OAuthException: Response body is incorrect. Can't extract token and secret from this: '
Pushpendra
  • 2,791
  • 4
  • 26
  • 49
3
votes
1 answer

Vimeo Advanced API: Searching for public videos in JAVA with SCRIBE

I'm trying to search for videos on VIMEO using their advanced API, in order to get some basic info about them such as their video ID and Thumbnail URL. This is my code, which I pretty much copied from HERE: public void getResponse() { String…
3
votes
0 answers

Can't obtain oauth request token from redmine with redmine_oauth_provider

I'm trying to use oauth in a redmine 2.4.2 with the redmine_oauth_provider plugin (https://github.com/a-ono/redmine_oauth_provider). I have configure a new client in redmine and get then the consumer key and consumer secret. I try then to make an…
Tony Chemit
  • 1,175
  • 4
  • 14
  • 30
3
votes
1 answer

Tumblr API Photo Post Returns 401 (Not Authorized)

I'm attempting to use the Tumblr API in an Android app to authorize users and make text and photo posts. I'm using the Scribe library. So for, I can successfully obtain an access token and use it to get user info. I can also make text posts…
Jabari
  • 5,359
  • 3
  • 26
  • 32
1 2
3
22 23