RedirectToLogOn Method (HttpContext, Boolean, String, String)

Redirects the caller's browser to the logon page for authentication.

Namespace: Microsoft.Health.Web
Assembly: Microsoft.Health.Web (in Microsoft.Health.Web.dll) Version: (1.15.1003.9505)

public static void RedirectToLogOn(
	HttpContext context,
	bool isMra,
	string actionUrlQueryString,
	string signupCode


Type: System.Web..::..HttpContext
The current request context.
Type: System..::..Boolean
Whether this application simultaneously deals with multiple records for the same person.
Type: System..::..String
The query string parameters to pass to the signin action URL after signin.
Type: System..::..String
The signup code for creating a HealthVault account. This is required for applications in locations with limited access to HealthVault. Signup codes may be obtained from NewSignupCode()()()(), Create(OfflineWebApplicationConnection, String, String, String, Uri, String), Create(OfflineWebApplicationConnection, String, String, String, String, IList<(Of <<'(HealthRecordItem>)>>)), Create(OfflineWebApplicationConnection, String, String, String, PasswordProtectedPackage), Create(OfflineWebApplicationConnection, String, String, String, String, PasswordProtectedPackage), CreatePackage(OfflineWebApplicationConnection, String, String, String, String, String, IList<(Of <<'(HealthRecordItem>)>>)), and AllocatePackageId(OfflineWebApplicationConnection)

After the user successfully authenticates, they get redirected to the action url for which the target is set to either AppAuthSuccess or AppAuthRejected depending on whether the user authorized one or more records for use with the application, with the authentication token in the query string. This is stripped out and used to populate HealthVault data for the page.