PassportAuthentication.RedirectUrl Property

Definition

Gets or sets the URL to which the request is redirected.

[System.Configuration.ConfigurationProperty("redirectUrl", DefaultValue="internal")]
[System.Configuration.StringValidator]
public string RedirectUrl { get; set; }

Property Value

The URL of the page to which the request is redirected.

Attributes

Examples

The following code example shows how to use the RedirectUrl property.


// Get the passport redirect URL
string redirectUrl = passport.RedirectUrl;

// Set passport redirect Url.
passport.RedirectUrl = "passportLogin.aspx";

if (!authenticationSection.SectionInformation.IsLocked)
  configuration.Save();

Remarks

The RedirectUrl specifies the URL of the page to which the request must be redirected if Passport authentication is required and the user has not signed on using Passport authentication.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1