Forum Discussion

aka_anoop's avatar
aka_anoop
Iron Contributor
Sep 26, 2020
Solved

Help with ASA on Unreal Engine

Hi All,

I have been trying to get Azure Spatial Anchors working on Unreal Engine. As per the documentation found https://docs.microsoft.com/en-us/windows/mixed-reality/develop/unreal/unreal-azure-spatial-anchors, I tried configuring the session using the Account ID and Account Key. However, while trying to https://docs.microsoft.com/en-us/windows/mixed-reality/develop/unreal/unreal-azure-spatial-anchors#creating-an-anchor, I get the following error.

Azure Spatial Anchors: RestClient::GetAccessTokenAsync - Unsuccessful getting access token! 
Azure Spatial Anchors: CreateNeighborhoodAnchorAndSpatialAnchorAsync - Token Provider Exception: 'Not authenticated to access the token service.'
Azure Spatial Anchors: CreateNeighborhoodAnchorAndSpatialAnchor was unable to obtain an access token

I double checked my Account ID and Account Key and and also verified that the session start succeeded.

  • Apparently this was an issue with the ASA Config Session Blueprint. The old one has been deprecated and replaced with ConfigSession2 Which accepts an AzureSpatialAnchorsSessionConfiguration that lets you configure domain as well, which in my case was southeastasia.mixedreality.azure.com

1 Reply

Replies have been turned off for this discussion
  • aka_anoop's avatar
    aka_anoop
    Iron Contributor

    Apparently this was an issue with the ASA Config Session Blueprint. The old one has been deprecated and replaced with ConfigSession2 Which accepts an AzureSpatialAnchorsSessionConfiguration that lets you configure domain as well, which in my case was southeastasia.mixedreality.azure.com

Resources