oauth

Ruby Gem Twitter - certificate verify failed (Twitter::Error::ClientError)

左心房为你撑大大i 提交于 2020-01-01 10:04:16
问题 I am trying to use the ruby gem 'twitter' but for unknown reasons I cant get it to work. Here is the .rb code: require 'twitter' puts "Greetings, World!" puts "Checkpoint 1" Twitter.configure do |config| config.consumer_key = "xxxxxxx" #removed for posting config.consumer_secret = "xxxxxxx" #removed for posting config.oauth_token = "xxxxxxx" #removed for posting config.oauth_token_secret = "xxxxxxx" #removed for posting end Twitter.verify_credentials puts "Checkpoint 2" and I get the

Ruby Gem Twitter - certificate verify failed (Twitter::Error::ClientError)

▼魔方 西西 提交于 2020-01-01 10:04:13
问题 I am trying to use the ruby gem 'twitter' but for unknown reasons I cant get it to work. Here is the .rb code: require 'twitter' puts "Greetings, World!" puts "Checkpoint 1" Twitter.configure do |config| config.consumer_key = "xxxxxxx" #removed for posting config.consumer_secret = "xxxxxxx" #removed for posting config.oauth_token = "xxxxxxx" #removed for posting config.oauth_token_secret = "xxxxxxx" #removed for posting end Twitter.verify_credentials puts "Checkpoint 2" and I get the

What's the auth code endpoint in Pinterest?

≯℡__Kan透↙ 提交于 2020-01-01 10:02:49
问题 This documentation is clear: http://developers.pinterest.com/api_docs/oauth_code_exchange/ I need the code for swap it with an access token. But where is the endpoint for access to this code? Tried the "classic" : https://api.pinterest.com/oauth2/auth?client_id=&redirect_uri=&scope=&response_type=code but seems 404. 回答1: The endpoint for v3 is: PUT https://api.pinterest.com/v3/oauth/code_exchange/ Example: curl -X PUT https://api.pinterest.com/v3/oauth/code_exchange/ -d "access_token={access

What's the auth code endpoint in Pinterest?

一曲冷凌霜 提交于 2020-01-01 10:01:28
问题 This documentation is clear: http://developers.pinterest.com/api_docs/oauth_code_exchange/ I need the code for swap it with an access token. But where is the endpoint for access to this code? Tried the "classic" : https://api.pinterest.com/oauth2/auth?client_id=&redirect_uri=&scope=&response_type=code but seems 404. 回答1: The endpoint for v3 is: PUT https://api.pinterest.com/v3/oauth/code_exchange/ Example: curl -X PUT https://api.pinterest.com/v3/oauth/code_exchange/ -d "access_token={access

oauth twitter and email

心不动则不痛 提交于 2020-01-01 09:37:08
问题 is it possible to get user email after he logged by oauth? may be page can ask him if he want to share his email in my application? or any allowed info is what return by url http://api.twitter.com/1/users/show/test.xml (without email)? 回答1: No. The Twitter api does not share email addresses for security reasons. Update: Twitter has added this functionality. Look at @collerek's answer. 回答2: For anyone interested this is not true anymore. Follow the guide in this answer to request a special

Android & OAUTH 2.0

旧城冷巷雨未停 提交于 2020-01-01 08:35:42
问题 I cannot work this out to save my life! So, I have a Codeigniter based REST api with an OAUTH 2.0 (draft 23 or something) server for my own auth system (not using Twitter or FB) I want to be able to use this to allow users to "log in" to my Android app. I can't find any information about this on the internet anywhere. There are a couple of unsupported OAUTH 2.0 client libraries out there, such as Leeloo (which moved to Apache Amber, which hasn't been updated for over a year, and there have

Use Django OAuth2 provider with JupyterHub

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-01 07:06:26
问题 I'm attempting to run a Django web application that pairs with a JupyterHub server, where users enter via the web app and are then granted access to a notebook server once they've signed in. To facilitate this, I'm attempting to use OAuth2, where Django provides the authentication and JupyterHub verifies users against that. I'm using django-oauth-toolkit to provide the authentication service and linking against it using the Generic OAuthenticator. A docker-compose reference implementation is

Writing a Two-legged OAuth provider in Django

萝らか妹 提交于 2020-01-01 06:52:08
问题 I'm looking for a tutorial/example/explanation about writing a two-legged provider for OAuth in Django. It's hard to find documentation about a OAuth provider, and even harder about a two-legged system... 回答1: '2 legged' is just normal OAuth request without an access token or access token secret. That's it. You still use the client credentials (identifier and secret) but use empty strings for the access token parameters. Depending on the server library you use, you can omit the oauth_token

After disabling offline_access and removing the app from app settings I no longer get an extended access token

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-01 06:40:42
问题 ** Looks like this was a bug that Facebook has since fixed. I disabled offline_access so that I could get extended access tokens without asking for the offline_access permission. While testing, it seemed to work fine at first. I got a token that expired in 60 days. Then I removed the app from facebook's app settings so I could test. As soon as I removed it, I started getting tokens that expire in 2 hours. Is this a bug? Or maybe this is a security thing like as soon as the app is removed, a

Can't figure out how to query Bing/Azure Marketplace API

被刻印的时光 ゝ 提交于 2020-01-01 06:39:08
问题 How the heck do you use the Bing API (now Azure Marketplace API)? Does it only support oAuth? Can anyone show me an example of how to authenticate to it? The documentation is silent and after an hour of frustration I'm posting the question here. Here is the end point I am trying to hit: https://api.datamarket.azure.com/Bing/Search/v1/Composite?query=sushi&sources=web This throws up Basic Auth; if I cancel I get an error message saying that only Basic and oAuth are supported. However, no