Code sample provider hosted app implementation that specific to Azure Control Access Service.
var spContext = SharePointAcsContextProvider.Current.GetSharePointContext(Context);
using (var clientContext = spContext.CreateUserClientContextForSPHost())
{
var properties = clientContext.Web.AllProperties;
clientContext.Load(properties);
clientContext.ExecuteQuery();
foreach(var items in properties.FieldValues)
{
Response.Write("Property Name:" +items.Key+":"+ "Values:"+ items.Value);
}
}