oauth

Delphi XE2 - always getting 401 Unauthorized () trying to get OAuth Access Token from Intuit

為{幸葍}努か 提交于 2019-12-24 20:48:04
问题 I am working on the last step of the OAuth dance with Intuit. This is a Delphi XE2 desktop app and I am using the Indy components. I am successfully getting my request token from Intuit and the callback from their website is properly redirecting me to our web service after I authorize my app. Using the returned verifier from Intuit I build my request to get the access token. I am always getting back a HTTP/1.1 401 Unauthorized error when I make my call to Intuit. If I post the URL I build

Invalid Signature - Google JWT API

谁说胖子不能爱 提交于 2019-12-24 20:45:41
问题 I'm trying to sign a request for Google 0Auth2 (in PHP) Here's my code: $jwtHeader = $this->base64url_encode(json_encode(array( "alg" => "RS256", "typ" => "JWT" ))); $now = time(); $jwtClaim = $this->base64url_encode(json_encode(array( "iss" => "xxxxxxxxxxxxxxx.xxx.gserviceaccount.com", "scope" => "https://www.googleapis.com/auth/prediction", "aud" => "https://www.googleapis.com/oauth2/v4/token", "iat" => $now, "exp" => $now + 3600, ))); $sign = hash_hmac('SHA256', $jwtHeader.".".$jwtClaim,

MSIS9649: Received invalid OAuth request. The 'assertion' parameter value is not a valid access token

被刻印的时光 ゝ 提交于 2019-12-24 19:24:12
问题 I am trying to implement ADFS4 - OAuth (OpenID connect) for authentication and webapp to webapi communication. I have configured ADFS application group accordingly and use OpenIdconnectauth pipeline in webapp for authentication. In order to call webapi, if I request accesstoken using just client credential grant, it works fine as I receive the valid access token and able to get to the api. However, the access token does not have any user details in it which I need it from the webapi end. So,

Login with Facebook, grab access token

亡梦爱人 提交于 2019-12-24 19:17:46
问题 I just need to login to Facebook and print/store the Access Token given in the Oauth response. I'm using the following code to initiate login: <script> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.9&appId=ID_REDACTED"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <div class="fb-login-button"

Laravel passport 500 internal server error on EC2

家住魔仙堡 提交于 2019-12-24 19:17:26
问题 I'm building an app using Angular 2 (no known as 4) as frontend and Laravel 5.4 as API backend. I'm using Laravel's passport password grant feature to authenticate user access to API. The Frontend is not directly accessing oauth routes. My custom auth controller is talking to oauth/token to get the grant values. This setup is working perfectly fine in my local environment, but in AWS EC2 it throws 500 internal server error. I thought it could be related to GuzzleHttp\Client, but it was not.

OAuth exceptions for 'primary' website/app

会有一股神秘感。 提交于 2019-12-24 18:55:02
问题 I've got my head around OAuth and the whole redirect-to-authorize concept. It makes sense to have third party applications do this, however what about the 'actual' website or app of a company? For example, the Facebook website/app are not going to force you through a redirect flow to login even though they may be sitting on an OAuth API under the hood. From an OAuth perspective it would seem exceptions need to be made for these types of consumers. Namely, there are a select few applications

Call REST webservice using Spring Integration and Oauth

北城以北 提交于 2019-12-24 18:43:57
问题 My goal is to perform a call to a REST webservice using an outbound gateway, this webservice needs a token provided by another web service. I've tried using Spring oauth without any luck since I am not sure how to integrate both frameworks. <int:chain input-channel="requestChannel"> <int-http:outbound-gateway url="https://webservice.url/..." http-method="GET" expected-response-type="java.lang.String" rest-template="restTemplate" /> ... </int:chain> <oauth:resource id="oauth1" client-id="admin

PHP execute curl Oauth

拥有回忆 提交于 2019-12-24 18:21:35
问题 I want to send the following header using curl: curl -H 'Authorization: OAuth oauth_signature_method="PLAINTEXT",⤦ ⤥oauth_consumer_key="xxx",oauth_token="xxx",oauth_signature="xxx"' ⤦ ⤥'https://external.ningapis.com/xn/rest/apiexample/1.0/Photo/recent⤦ ⤥?xn_pretty=true&fields=image.url,title&count=2' Above command is for command line usage. Anyone know how to execute this using PHP curl? 回答1: The -H from curl command-line is CURLOPT_HTTPHEADER in PHP curl curl_setopt. This should be the most

Google OAuth consent screen not showing scope options

那年仲夏 提交于 2019-12-24 17:54:56
问题 I am trying to set up the Google OAuth keys inside the Google developer console with the right privileges for my project. In a different project I am able to go to Credentials/OAuth consent screen and select from list of scopes. However, with my current project those options are missing. Both projects use the same set of Google APIs. I do not remember doing anything special with the one where the scope options are present, but apparently I am missing some vital settings. Any help will be

Open Graph calls generating OAuth Exception

こ雲淡風輕ζ 提交于 2019-12-24 17:42:47
问题 I'm experiencing some problems getting an Open Graph implementation working. As far as I can tell, I have the correct meta tags present. When I paste an URL into the Open Graph Debugger, it returns with the proper information defined (title, description, image, etc), and no errors. I have version 3.1.1 of the Facebook PHP SDK. I have Open Graph enabled for my development app, and I have an action ( read ), and an object ( article ) defined. The implementation in question is a website, not a