The request was forbidden. Your credentials may be denied or suspended - bing-maps

I am developing a windows application using devexpress components and Delphi but when I try to use the map component I get this error message "The request was forbidden. Your credentials may be denied or suspended" what it means and how to fix ?

It sounds like either you have provided a Bing Maps key into your application that has been blocked, or you didn't provide a key at all and the devexpress component might have someone else's key in it which has since been blocked. Not sure which DevExpres control you are using. If using their WPF control, here is documentation on how to use Bing Maps in it: https://documentation.devexpress.com/#WPF/CustomDocument17459 Note that there is a BingKey parameter in the XAML example that you need to provide a value for.
DevExpress also provided some documentation on how to get a Bing Maps key here: https://documentation.devexpress.com/#WPF/CustomDocument10974
Additionally you can also get a Bing Maps key through Azure here: https://azure.microsoft.com/en-us/marketplace/partners/bingmaps/mapapis/

Related

Is it OK to store Google Map api key on Firestore ? (Calling from Flutter app)

TL;DL
Is it OK to store api key for Google map api on Firebase Firestore with security rules ?
Question
I'm working on map features using google_maps_flutter plugin. This package describes to store the key on source code on its document, but this seems to be insecure.
Many developers describing that the most secure way to manage api key is to store on server side and I agree with this idea.
I found the issue but it seems that the plugin does not have a way to provide the api key dynamically.
In the iOS sdk, they have GMSServices.provideAPIKey(Could not find same kind of methods on Android) and this allows to provide api key dynamically.
If the plugin support these features in future, is it OK to store the key on firestore with security rules?
Thank you
If your third-Party API Key are sensitive, they should stay on the server and never reach the User's device.
So, you could store them on Firestore with strong security rules (i.e. only readable with admin privileges) and then place the third-party API calls within Firebase Cloud Functions.

How to get Outlook Access token?

I'm using the outlook calendar rest api from Salesforce. To continuously leverage the calendar API I need to get authorisation code, access and refresh token.
I have been able to get the Authorisation code by hitting the API. How to get the access token using development code to use the outlook calendar rest API.
Please find the list of AAD authentication libraries here:
https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-authentication-libraries
I found this tutorial in Python very helpful for getting access codes:
This tutorial uses Microsoft Graph (which covers several Microsoft products including Microsoft Outlook) rather than the outlook REST API (which covers just Outlook).
https://learn.microsoft.com/en-us/outlook/rest/python-tutorial
At first, I thought setting up a Django server was overkill. Then I realized that I wanted a way for my Python instance to capture the access code after going through single-sign-on. (I MUST use my browser for single-sign-on because my institution uses multi-factor authentation.) Having a Django server is a natural way to do this.
So I created a new PyCharm Django project (which is straight-forward in PyCharm) and began following the tutorial.
I found it essential to continue following the tutorial all the way through displaying my emails to avoid getting authentication errors -- deviate from the tutorial, and I got error messages (such as this one) that were unpenetrable.

Is it possible to obtain session id key in Unity to use with Bing Map request?

Usually to get the session id key to use with Bing Map request instead of the Bing Maps Key, we would use one of the available control ( Bing Maps AJAX Control 7.0, Bing Maps Silverlight Control, Bing Maps WPF Control, and Bing Maps for Windows Store apps) to request a session id depending on the situation.
Since the app we are currently working with was developed with Unity (the game engine) and use the REST imagery api from Bing Map to request tile data and display them, every request for map tile is counted as a billable transaction since there is no session id because there is no control available.
We would like to reduce the amount of billable transaction the app receive every time the user browse the map and the only way to do so is to have a session id key.
Is there a way other than with the default control provided to obtain a session id key?
It is technically possible but not authorize in the terms of use since the session key mechanism is only to be used with the provided map controls among those offered by the platform (AJAX, SL, WPF and WinStore app controls).
MSDN reference:
See the MSDN for more information:
https://msdn.microsoft.com/en-us/library/ff859477.aspx
With quoted useful information:
This transaction is not billable if the service request is made using a session ID from an AJAX Control, Silverlight Control, WPF Control, Windows Store app for JavaScript, or Windows Store app for C#, C++, or Visual Basic session.
Terms of use:
And see the Terms of Use regarding the session information, article 4.9.b:
https://www.microsoft.com/maps/product/terms.html
Regular use, best practices and samples:
For any other regular and authorized use cases, see the blog post that explains how to optimize the calls and transactions:
http://blogs.bing.com/maps/2013/02/14/bing-maps-rest-service-tips-tricks/

Using Welcome to Google Maps API Premier in iPhone

I am working on a commercial application on iPhone that is using google map. I have Google map api premier client id and cryptographic key to use google map for some limited services like "directions".I generated the signature key using this code:
http://code.google.com/p/gmaps-samples/source/browse/trunk/urlsigning/urlsigner.m?spec=svn2498&r=2498
But still the WS claims "too many connections".
Is there any problem for using Google Maps API Premier in iPhone?
Please Help.
Also, you can learn more on the quota on Maps API web services for Business users, here:
https://developers.google.com/maps/documentation/business/faq#usage_limits
Most likely not related to the use of the API from iPhones.
I would suggest that you open a case with Maps API for Business Support Team (new name for Maps API Premier). You can do it under:
http://support.google.com/enterprisehelp/bin/answer.py?hl=en&answer=142858&rd=1
If you don't yet have access you can also submit a request using a form:
http://support.google.com/enterprisehelp/bin/answer.py?hl=en&answer=142246#request
Putting the error messages aside , it seems alarming that you want to use server side geocoding from an iPhone. The problem with this is that you won't be able to scale as your user base grows since your limits are set.
Instead you should try reading on client side geocoding.
There is a really good article that explains how to make this decision:
https://developers.google.com/maps/articles/geocodestrat
"too many connections" does not sound like an error message you might be getting from Google Servers, but rather something to do with the platform. If you contact support they will be able to check that for you.
I hope that helps!

Google Maps Api v3 with API Key

All,
Getting "REQUEST DENIED" when I try to access Google Maps Geocoding web service. Not sure why. The URL looks right to me and the Simple Access API browser key is valid and has both Maps v2 and Maps v3 turned on.
I realize the API key is no longer required in v3 so I have no idea how to get around the API limits using the web services via query string params.
http://maps.googleapis.com/maps/api/geocode/json?key=MYAPIKEY&latlng=39.76144296429947,-104.8011589050293&sensor=true
When I remove the "key" parameter, it works but I need stats and don't wanna hit the API access limits so I need the key in there (I think)
Any suggestions would be great.
Thanks
Decided to go with geonames.org for this project. Much easier to deal with than Google.