/// <summary> /// Call the FeedHenry Authentication API with the given policyId. This is normally used for OAuth type authentications. /// The user will be prompted for login details and the the login result will be returned. /// </summary> /// <param name="policyId">The id of the new policy</param> /// <returns>The result of the authencation</returns> public static async Task<FHResponse> Auth(string policyId) { RequireAppReady(); FHAuthRequest authRequest = new FHAuthRequest(cloudProps); authRequest.TimeOut = timeout; authRequest.SetAuthPolicyId(policyId); return await authRequest.execAsync(); }
/// <summary> /// Call the FeedHenry Authentication API with the given policyId. This is normally used for OAuth type /// authentications. /// The user will be prompted for login details and the the login result will be returned. /// </summary> /// <param name="policyId">The id of the new policy</param> /// <returns>The result of the authencation</returns> public static async Task<FHResponse> Auth(string policyId) { RequireAppReady(); var authRequest = new FHAuthRequest(CloudProps) {TimeOut = TimeOut}; authRequest.SetAuthPolicyId(policyId); return await authRequest.ExecAsync(); }