oauth

Trying to access hosted SharePoint 2013 from Java app gives me 401 although I use correct OAuth token

不想你离开。 提交于 2020-01-02 07:27:07
问题 I'm trying to access our company SharePoint 2013 instance, which is hosted at ourinstance.sharepoint.com, with small Java web application. I registered application through _layouts/15/AppRegNew.aspx this way: I let SP generate Client ID, Client Secret, to App Domain I set: ourdomain:8443 to Redirect URL I set: https://ourdomain:8443/our-redirect-processing I edited application permissions with _layouts/15/appinv.aspx, where I looked it up by client ID and edited its Permission Request XML to

Twitter Integration in android using twitter4j-4.0.1

核能气质少年 提交于 2020-01-02 07:15:31
问题 I am try to integrate twitter in android I have followed tutorial from following link http://www.androidhive.info/2012/09/android-twitter-oauth-connect-tutorial/ But I am facing an exception in loginwithTwitter function at these lines ConfigurationBuilder builder = new ConfigurationBuilder(); builder.setOAuthConsumerKey(TWITTER_CONSUMER_KEY); builder.setOAuthConsumerSecret(TWITTER_CONSUMER_SECRET); Configuration configuration = builder.build(); TwitterFactory factory = new TwitterFactory

Can Oauth2 Access Token be shared by client?

て烟熏妆下的殇ゞ 提交于 2020-01-02 05:15:47
问题 I am new to OAUTH and trying out understanding the spec. So as per the spec protocol flow, I understand that Client A, can get Authorization code and then Access Token for a protected resource. Now if Access Token has been obtained, Services e.g Linked in expects the Access token to be part of URL Query, See their interface document. So now if Client A has shared access token with Client B, or e.g anyone intercepts the request, and gets the access token, then he too can start accessing all

Remove csrf protecteion on API post calls

拈花ヽ惹草 提交于 2020-01-02 04:44:07
问题 I would like to remove csrf from my Express 3.0 application as i don't need it there. I use oauth to validate clients. Is the a middleware to whitelist API urls when using express.csrf()? 回答1: You can do that in two ways. 1.) Create a small middleware of your own to allow white list url patterns not to be blocked by csrf like; var express = require("express"); var expressCsrf = express.csrf(); var app = express.createServer(); var customCsrf = function (req, res, next) { // I assume exact

Facebook oauth authorize URL and parameter options

我们两清 提交于 2020-01-02 02:02:08
问题 Facebook provides some documentation on the parameters of oauth login. Login Dialog OAuth 2 Parameters are: client_id = Your App ID redirect_uri = Your App Website URL display = page, popup, iframe, async, touch. How to display login. scope = permission names. Permissions your app is asking the user to grant to your app. state = a string included in the response back to your app. response_type = code or token or both. Used in different ways depending on authorization flow. Is there more

Proper WWW-Authenticate header for OAuth provider

▼魔方 西西 提交于 2020-01-02 01:37:44
问题 In the OAuth 1.0 spec it is suggested to respond with the following WWW-Authenticate header: WWW-Authenticate: OAuth realm="http://server.example.com/" Is it suitable to add any other informative data to this header? In case a request for a protected resource fails, would it be reasonable to include some information as to why? Such as: WWW-Authenticate: OAuth realm="http://server.example.com/", access token invalid Or is this contrary to the purpose of the response header? 回答1: Sounds a

How do I connect to Gmail's IMAP server using oauth in Rails3?

此生再无相见时 提交于 2020-01-02 01:00:14
问题 I found the gmail_xoauth gem, which does most of what I need, but I also need to generate the oauth tokens (consumer_key and consumer_secret) from inside Rails3. I am trying to integrate Gmail's oauth integration into my site and hence cannot use the python script that the above gem refers to. I would like my site to take the user to the authentication page and extract the consumer_key/secret tokens. I am new to OAuth, so maybe there's something obvious that I am missing. UPDATE: I solved the

What are the different ways to authenticate two different server securely apart from OAuth and SAML?

空扰寡人 提交于 2020-01-01 19:26:06
问题 Background: I want to integrate SSO in my existing application with my client's application and client IDP does not support any SAML and OAuth standards. Problem Statement: I'm looking for a custom solution where if any client application simply opens a link of my application then my application must be able to recognise that user/client and should auto logged-in into my application. Though, I've done enormous research before asking this question in this forum: My findings so far: Some of my

Getting Invalid Signature error with woocommerce rest api using oauth 1.0a

纵然是瞬间 提交于 2020-01-01 18:59:12
问题 I am getting an invalid signature error in woocommerce rest api. I am also using the oauth 1.0a script from ddo https://github.com/ddo/oauth-1.0a. I generated the api keys twice. Also removed the version parameter inside de oauth script like requested on the woocommerce rest api documentation http://woothemes.github.io/woocommerce-rest-api-docs/ url test.dev/wc-api/v3/orders/line_items?oauth_consumer_key=ck_858f9cf8cda8085d5677b2b1d4c12d10897e9702&oauth_nonce=MyriSapnWSopIusSjjuqJ8PLi6RWr0L9

OAuthException: (#2) Failed to create any app request

大兔子大兔子 提交于 2020-01-01 17:56:08
问题 I am using following code to send request from application to user. Everything was fine, but suddenly it stops to work and I get an error: OAuthException: (#2) Failed to create any app request $config = array(); $config['appId'] = $this->app_id; $config['secret'] = $this->app_secret; $facebook = new Facebook($config); $url = "https://graph.facebook.com/oauth/access_token?client_id={$this->app_id}&client_secret={$this->app_secret}&grant_type=client_credentials"; $token = file_get_contents($url