When i try to make a POST request to Google Proximity Api i have this error:
{
"error": {
"code": 403,
"message": "Unauthorized.",
"status": "PERMISSION_DENIED"
}
}
I use a service account to make the request with the Authorization: Bearer + token
Know if Google Proximity Api support the oauth2 service account? Thank you!!
Basically you need to enable the API for it on your google console project and create credentials using the sha1 of your debug.key. Also if you're using the google oauth playground you have to configure the settings by changing the oauth flow to client side. Next click on use your own oauth credentials and then copy the browser client ID that was created for your oauth from the google console. this should authorize you to do all your work. Source from google developer
Related
I want to authorize in the report portal application using chromedriver in webdriverio.
So I'm retrieving the API token via:
GET http://reportportal.io/uat/sso/me/apitoken'
Get response:
{
"access_token": "D1aexc0a-d11d-067f-xx7c-3e2e0fb96332",
"token_type": "bearer",
"scope": "api"
}
My next step is to use this token in my steps to bypass authorization.
I've tried to set this token as a cookie and as CSRF token, but no chance to receive anything successful.
I would appreciate any help or advice on how to use token to authenticate in the application.
Sorry if something written wrong or inadequately I'm new in this.
I was integrating ebay api and want to create payment policy. According to this guide
https://developer.ebay.com/api-docs/static/make-a-call.html
i generated token and send it this postman. But it is throwing a error
{
"errors": [
{
"errorId": 1100,
"domain": "ACCESS",
"category": "REQUEST",
"message": "Access denied",
"longMessage": "Insufficient permissions to fulfill the request."
}
]
}
Please is there help or proper guide to full fil.
Headers:
Ensure that you are using the correct access tokens. In eBay, the User Access Token and the Application Access Tokens are separate entities to be used for differing purposes. From the eBay docs:
Client credentials grant flow mints a new Application access token that you can use to access the resources owned by the application.
Authorization code grant flow mints a new User access token that you can use to access the resources owned by the user.
The one that you should be using in your call is the User Access Token.
The application access token is minted on calling https://api.sandbox.ebay.com/identity/v1/oauth2/token with the header grant_type:client_credentials. The User Access Token is minted on calling the same URL, however, with the headers grant_type:authorization_code or grant_type:refresh_token.
Try to refresh the user token with by calling https://api.sandbox.ebay.com/identity/v1/oauth2/token with grant_type:refresh_token header and use that to authorize your call instead
I'm integrating my smarthome services on the Actions on Google platform and I have some problems during the authentication process.
I have an Amazon Cognito user pool configured that I'm using for authentication, and apparently works fine, but I never receive the token on any request sent from Google to my back-end services.
The official documentation says the following:
"When you have authenticated a user, the user's third-party OAuth 2 access token is sent in the Authorization header when smart home intents are sent to your fulfillment."
But in fact, I don't receive that token.
{
"inputs": {
"0": {
"intent": "action.devices.SYNC"
}
},
"requestId": "7597788060327530693"
}
My account linking configuration:
https://i.stack.imgur.com/hLaVN.png
What you've posted is the request body. The headers should exist as a separate object in your request, which will be a key-value pair of metadata. One datum should be Authorization.
I'd like to use Facebook login through Firebase like this:
firebase.auth().signInWithPopup(provider).then(function(result) {
// This gives you a Facebook Access Token. You can use it to access the Facebook API.
}).catch(function(error) {
// Handle Errors here.
});
But I have still some trouble with an "authorization". Here my console error:
I tried to check "Auth section -> Sign in" in Firebase, here's the picture:
But that, unfortunately, did not help me. So I checked the Google API console, here's the key:
The Javascript error appears when I call signInWithPopup function.
Can somebody help me? Thanks.
Assuming that you've already registered your application with Facebook, you need to add your Facebook application id and secret in Firebase and then register the OAuth redirect with Facebook.
Sign-in Providers
Of course #bojeil, this is the response of "getProjectConfig" request.
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "ipRefererBlocked",
"message": "The referrer https://mywebsite-28961.firebaseapp.com/__/auth/iframe?apiKey=AIzaSXXXXXXXXXXXJxJtYyQc&appName=%5BDEFAULT%5D&v=3.2.1&usegapi=1&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.fr.rHHEwUgDOpI.O%2Fm%3D__features__%2Fam%3DAQ%2Frt%3Dj%2Fd%3D1%2Frs%3DAGLTcCM__323woIJL0YGmPpXSAOboj0rkQ does not match the referrer restrictions configured on your API key. Please use the API Console to update your key restrictions.",
"extendedHelp": "https://console.developers.google.com/apis/credentials?project=952309991745"
}
],
"code": 403,
"message": "The referrer https://mywebsite-28961.firebaseapp.com/__/auth/iframe?apiKey=AIzaSXXXXXXXXXXXJxJtYyQc&appName=%5BDEFAULT%5D&v=3.2.1&usegapi=1&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.fr.rHHEwUgDOpI.O%2Fm%3D__features__%2Fam%3DAQ%2Frt%3Dj%2Fd%3D1%2Frs%3DAGLTcCM__323woIJL0YGmPpXSAOboj0rkQ does not match the referrer restrictions configured on your API key. Please use the API Console to update your key restrictions."
}
}
I want to use the new vimeo api to fetch videos based on a query, but I getting a 401 Authorization Required with this message "error": "A valid user token must be passed."
I'm using this code :
var urlX = 'https://api.vimeo.com/videos?query=elvis&client_id='+VIMEO_API_KEY;
$.getJSON(urlX, function(data){
console.log(data);
});
So obviously I have an authentication problem.
As client_id I'm using my "Client Identifier" from my app created in Vimeo's dashboard.
The error I keep getting mention "user token", do I have to generate one via Vimeo's dashboard or via php ?
I'm a bit lost here.
client_id through the querystring is not a valid method of making API calls against the Vimeo API.
First you must request an access token either through the oauth2 redirect worfklow: https://developer.vimeo.com/api/authentication, or by generating it on your app page.
Second you must provide that access token with your api request either through the Authorization header:
Authorization: bearer <your_token>
or the querystring
https://api.vimeo.com/videos?query=elvis&access_token=<your token>.
The authorization header is more secure, and will continue to work indefinitely. Some changes will be made soon to the querystring form which could cause problems with your application.