Authorization call back function in Azure