skip to Main Content

I have an react-application i am creating in a static web app – all this works fine but I want to remove the hard-coded values of the app registration. so I have it like this at the moment.

enter image description here

Obviously this is not good enough – so i created a key vault to store this info in.

enter image description here

So somehow i need to reference this clientid via the application settings and then grab the vital info out of the reference into my key vault and into my application.

How can i do this ? All i hear is that i can only do this for API’s which doesnt seem good to me.

Any help would be amazing.

2

Answers


  1. Chosen as BEST ANSWER

    After looking into this as @indp said this is not possible at the moment with the key vault. So the best way of doing this is this way : https://learn.microsoft.com/en-us/azure/developer/javascript/tutorial/static-web-app-image-analysis?tabs=bash%2Cvscode

    Hope this helps people.


  2. Client ID is not sensitive. Also, you can enable managed identity on your Static Web App and use the identity to access Key Vault, where you store your configuration.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search