-
Notifications
You must be signed in to change notification settings - Fork 469
Subscription Key Security Strategy #1
Description
This issue is for a: (mark with an x)
- [ ] bug report -> please search issues before submitting
- [x] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
Run up the AzureMapsCodeSamples project as-is, no modification required.
Any log messages given by the failure
N/A
Expected/desired behavior
Thanks for this great demo pack. A quick question around the subscripton key.
I am experimenting with using the Map class for a few of our projects, my basic instantiation looks as follows:
new atlas.Map(this.id, {
"subscription-key": subscriptionKey,
language: "en-US",
zoom: this.zoom
... more optional params
}); By my understanding, the class requires that the subscription key be provided on instantiation, it will then be held by the class and used for subsequent requests to the API that provides data for the map (tile vectors, traffic incidents etc.) This obviously means that the subscription key must be brought out into client-side JS in order to be supplied to the class.
What I would like is to be able to provide a proxy url for the Map component, which will be able to intercept requests to its API, and insert the subscription key directly from the server.
Hopefully someone can provide a bit of clarity and if I have missed something obvious in the docs!
Thanks
OS and Version?
Windows 10