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.
Obviously this is not good enough – so i created a key vault to store this info in.
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
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.
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.