/// <summary> /// Gets the authorization value for Anon authentication (appKey-only) /// </summary> /// <returns>authorization value</returns> public static string GetAnonAuth() { return(AuthHelper.CreateAnonAuth(TestConstants.AppKey)); }
/// <summary> /// Gets the authorization value for AAD /// </summary> /// <param name="userHandle">user handle (can be null if caller app cannot provide its own handles)</param> /// <returns>authorization value</returns> public static async Task <string> GetAADAuth(string userHandle = null) { string accessToken = await TestUtilities.GetAADAccessToken(); return(AuthHelper.CreateAADS2SAuth(accessToken, TestConstants.AppKey, userHandle)); }