oauth

oauth 2.0 gwt access token and google calendar api

為{幸葍}努か 提交于 2020-01-17 12:28:27
问题 I'm treading in unfamiliar territory again. I used this client library https://code.google.com/p/gwt-oauth2/ to get an access token that I can use to access google calendar API. After doing some research, I noticed another client library http://code.google.com/p/gwt-google-apis/source/browse/trunk/apis/samples/calendar/com/google/api/gwt/samples/calendar/client/CalendarEntryPoint.java that I can use to make google calendar api calls. Now what I don't understand is how to combine the two. So I

Getting Request Token From Dropbox OAuth “Invalid OAuth Request”

╄→尐↘猪︶ㄣ 提交于 2020-01-17 08:22:47
问题 I'm trying to get a response data from dropbox oauth as described here Now i dont know why it keeps saying {"error": "Invalid OAuth request."} Here is a my complete code for requesting token: -(void)requestTokenSecret { NSString* oauthVersion=@"1"; NSString* oauth_signature_method=@"PLAINTEXT"; NSString* postHeader = [NSString stringWithFormat: @"Authorization: OAuth oauth_version=\"%@\", oauth_signature_method=\"%@\", oauth_consumer_key=\"%@\", oauth_signature=\"%@&\"",oauthVersion,oauth

How to add Twitter support for Opensocial on a Apache Tomcat (Liferay)?

╄→гoц情女王★ 提交于 2020-01-17 07:28:01
问题 i recently upgraded to Liferay 6.1(b4 from the trunk 17.11.2011) to test the Opensocial support. Now i wanted to make a Twitter Oauth request, but i am not able to do this. I first tested if Opensocial works with some sample gadgets, but i get a error from every gadget. Error: 403 Error, OAuth error: NOT_OWNER, Non-Secure Owner Page. Only page owners can grant OAuth approval ==== Original request: GET /1/account/verify_credentials.json Host: api.twitter.com X-Shindig-AuthType: oauth X

Oauth, Twitter, 401 Unauthorised

早过忘川 提交于 2020-01-17 05:45:40
问题 I want to break away from Twitsharp and utilise the User Streaming in twitter, in order to do this I need to write my own oAuth for authenticating my requests against the API. Having never had to do this I'm really struggling to implement it. I found an excellent example (http://garyshortblog.wordpress.com/2011/02/11/a-twitter-oauth-example-in-c/) which I'm attempting to use to understand how to write my own. However I can't even get the example to work. Each time run it I always encounter

Authorize Attribute Not working in Web API 2.2 using OAuth2

好久不见. 提交于 2020-01-17 05:08:10
问题 I'm placing an [Authorize(Users = "user@sample.com")] attribute at the top of my Controller: [Authorize(Users = @"user@sample.com")] public class PostsController : ApiController { ... methods... } The user's usernames are the email address. When I sign in with user@sample.com I still get a 401 Unauthorized this controller's methods. I've also notice that, even after the user signs in both System.Web.HttpContext.Current.User.Identity.Name and System.Security.Claims.ClaimsPrincipal.Current

CAS OAuth Authentication Using Google OAuth 2.0 and Using Yahoo OAuth 1.0

血红的双手。 提交于 2020-01-17 04:06:06
问题 I've successfully configured my CAS v. 3.5.2 to delegate authentication to Yahoo using OAuth 1.0 by following the instruction Jasig CAS Wiki at https://wiki.jasig.org/display/CASUM/Configuration+for+the+OAuth+client+support+in+CAS+server+version+%3E%3D+3.5.1 Now, I am trying to add the authentication with Google using OAuth 2.0. For that, I am using Google2Provider by updating the dependency on scribe-up to 1.3.1. But the following error is thrown upon accessing CAS login page: SEVERE:

Using Tweepy API behind proxy

落爺英雄遲暮 提交于 2020-01-17 02:20:51
问题 I have a using Tweepy , a python wrapper for Twitter.I am writing a small GUI application in Python which updates my twitter account. Currently, I am just testing if the I can get connected to Twitter, hence used test() call. I am behind Squid Proxy server.What changes should I make to snippet so that I should get my work done. Setting http_proxy in bash shell did not help me. def printTweet(self): #extract tweet string tweet_str = str(self.ui.tweet_txt.toPlainText()) ; #tweet string

Can I use oauth token at client side?

耗尽温柔 提交于 2020-01-16 14:29:40
问题 can I use oauth token generated on server at client side ? if yes . will it be secure to going like that ? 回答1: I'm not completely sure I understand the question. But, in general, if you have the application token and the user token, you can use it anywhere. For instance, my application has a mobile registration or an web site registration. Regardless of which one you do, the tokens are shared and can be used from either client. 回答2: OAuth 2.0 AccessToken can be used to access its resource in

Problems passing access token to authenticate with API

家住魔仙堡 提交于 2020-01-16 13:58:31
问题 I'm trying to get information from the Gimmebar API (redirects to the access token step) and having problems with the last step exchanging the access token for the data. #getting access token successfully before this post_url = '/tags' headers = {'Authorization': 'Bearer %s' % access_token} query = '/collections' full_url = '%s%s%s' % (base_url, post_url, query) req = urllib2.Request(full_url, headers=headers) response = urllib2.urlopen(req) the_page = response.read() It breaks at the urllib2

Sign-in button prompts for Credentials and successfully authenticates but, doesn't log-in the user

有些话、适合烂在心里 提交于 2020-01-16 08:27:31
问题 Ms Teams Chat Bot : MS Teams OAuth Authentication Sign-in button prompts for Credentials and successfully authenticates but, doesn't log-in the user Using MS Teams: Validation Code Text Box Popup Doesn't Show up: In MS Teams The Sign-in button works to show the login prompt, the authentication is successful but then, The Validation code Text Box doesn't show up and the further Bot code is not executed. When I re-type the utterance "Hi" it, shows the Sign-in button again. Using Azure Webchat &