[Azure Maps] How to authenticate without RBAC?

Nikolay Mitikov 6 Reputation points
2023-08-13T10:16:23.9+00:00

I, as a developer (with Contributor role), is tasked with integrating Azure Map (using Maps Web SDK).

Despite I have access to both Map keys (Shared Key Authentication section), and can do with maps everything (except assigning security), there is no way for me to authenticate SDK API requests (as caller Azure Func cannot be granted 'Maps Reader' access).

The current map security implementation (that neither exposes sensitive keys, nor relies on SAS) is based on RBAC & managed identities (DefaultAzureCredential integration) which cannot be used in case no 'admin' permissions are supplied.

It also turns to be a case in case callees live in other AD tenants.

I did not find any documentation/way on how to generate/produce tokens from backend in any other way except using RBAC & managed identities.

Could you please highlight if there is a way, considering my motivation is legit?

Thanks,

Nik

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
805 questions
{count} votes

1 answer

Sort by: Most helpful
  1. IoTGirl 3,461 Reputation points Microsoft Employee
    2023-08-14T17:29:22.0733333+00:00

    Hi Nik,

    There are two models outlined in our docs at https://learn.microsoft.com/en-us/azure/azure-maps/azure-maps-authentication & https://learn.microsoft.com/en-us/azure/azure-maps/authentication-best-practices. We also have some helpful blogs:

    I recommend taking a look at the blogs as they will likely clarify some of the steps you need to take to get the type of connection you want. They also include the automation scripts for the back end.

    Sincerely,

    IoTGirl


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.