oauth

Calling Marketing Cloud APIs from C# via FuelSDK

孤街浪徒 提交于 2021-02-11 15:37:38
问题 In am trying to get an access token to call Salesforce Marketing Api through FuelSDK the code is: NameValueCollection parameters = new NameValueCollection(); parameters.Add("clientId", "myclientidvalugoeshere"); parameters.Add("clientSecret", "myclientsecretvaluegoeshere"); var client = new ETClient(parameters); ETFolder folder = new ETFolder(); folder.AuthStub = client; var response = folder.Get(); return response.Message; But it's returning: System.Net.WebException : The remote server

Calling Marketing Cloud APIs from C# via FuelSDK

a 夏天 提交于 2021-02-11 15:34:24
问题 In am trying to get an access token to call Salesforce Marketing Api through FuelSDK the code is: NameValueCollection parameters = new NameValueCollection(); parameters.Add("clientId", "myclientidvalugoeshere"); parameters.Add("clientSecret", "myclientsecretvaluegoeshere"); var client = new ETClient(parameters); ETFolder folder = new ETFolder(); folder.AuthStub = client; var response = folder.Get(); return response.Message; But it's returning: System.Net.WebException : The remote server

HERE REST API OAuth 2.0 Token Request (with a 1.0 header) Error

孤者浪人 提交于 2021-02-11 14:44:13
问题 I've been trying to get my PHP application to create a successful token request since finally managing to get it working with Postman as per the docs here Apparently the API is using OAuth 2.0 which is why I expect to send up grant_type , client_id , client_secret and expires_in (if I don't specify one of these fields then the API will successfully tell me it is missing). Now the problem I am having is with this OAuth 1.0 Authorization Header that I am having to generate, which Postman seems

Google OAuth2 response_type error on authorization code request

丶灬走出姿态 提交于 2021-02-11 13:35:58
问题 I'm trying to get an authorization code from Google+ API, as described in Step 1(Set authorization parameters) (HTTP/REST). As I've read there, the Google authorization server has the following mandatory query string parameters: client_id , redirect_uri and scope , so my href would look like this: https://accounts.google.com/o/oauth2/v2/auth?client_id=123002756467-dmq0soo7rlfc4on640hdsehnrvb700t7.apps.googleusercontent.com&redirect_uri=http://localhost:5000/oAuthCallback&scope=https://www

Problem with scope results during token generation when apim3.2.0 is configured with is5.10.0 as keymanager

南笙酒味 提交于 2021-02-11 12:47:37
问题 I found strange behavior during checking functionality of WSO2 AM + IS as key manager. Env I: WSO2 AM 3.2.0 (GA pack) Env II: WSO2 AM 3.2.0 (GA pack) WSO2 IS 5.10.0 (GA pack) Configuration: created users: user-low, user-high created roles: low, high user-low has assigned low role user-high has assigned high role created shared scopes: high-scope, low-scope high-scope pointed to high role low-scope pointed to low role published api with 2 endpoint /unsecure (has pointed scope: low-scope)

Google People Api: Country not returned in Adresses field

[亡魂溺海] 提交于 2021-02-11 12:41:17
问题 I am trying to get the authenticated user's country by specifying "addresses" field in the People Api request as specified here. This is the code: router.post("/test_scope", (req, res) => { const { idToken, accessToken } = req.body; authenticationServices .validateGoogleAccessToken(idToken, accessToken) .then((response) => { res.json(response); }); }); const validateGoogleAccessToken = async (idToken, accessToken) => { try { const CLIENT_ID = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps

Google OAuth & API: blank login because localhost is not “whitelisted”

独自空忆成欢 提交于 2021-02-11 04:55:13
问题 Error (inspected from html): details: "Not a valid origin for the client: http://localhost:3000 has not been whitelisted for client ID 830959654564-inlhib5r4afjbm4ebt1e43gt07bpvve5.apps.googleusercontent.com. Please go to https://console.developers.google.com/ and whitelist this origin for your project's client ID." error: "idpiframe_initialization_failed" Problem: Tried using localhost:3000 and my local ip address given from React. I've tried clearing the cache. I've tried using other

Redirect the Chrome extension popup.html page to a URL for Oauth

六眼飞鱼酱① 提交于 2021-02-10 15:40:44
问题 Is it possible to redirect the popup Html of a chrome extension to a remote URL? I'm looking into this scenario for the purpose of OAuth. When a user clicks on the "Login with FB" button, I want the Html page of the chrome extension to redirect to: https://www.facebook.com/dialog/oauth?client_id={app-id}&redirect_uri={redirect-uri} so that the user is prompted to log in. Is this the right approach to do authentication in a Chrome extension anyway? 回答1: Popups are very.. fragile. They are too

Why not have the public key in JWT payload for convenience

为君一笑 提交于 2021-02-10 05:01:17
问题 As I understand it: to check the validity of a JWT created using an asymmetric public/private key encryption algorithm, you require the public key along with the JWT header, claim (aka payload) and signature. The JWT header and claim can be decoded freely but can't be verified without the public key to validate the signature with (which is based on the header & claim and created with the private key). My question is, why not just bundle the public key into the claim payload of the token. That

Why not have the public key in JWT payload for convenience

孤街浪徒 提交于 2021-02-10 04:57:06
问题 As I understand it: to check the validity of a JWT created using an asymmetric public/private key encryption algorithm, you require the public key along with the JWT header, claim (aka payload) and signature. The JWT header and claim can be decoded freely but can't be verified without the public key to validate the signature with (which is based on the header & claim and created with the private key). My question is, why not just bundle the public key into the claim payload of the token. That