summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--samples/OpenIdRelyingPartyWebForms/login.aspx1
-rw-r--r--samples/OpenIdRelyingPartyWebForms/login.aspx.cs3
-rw-r--r--samples/OpenIdRelyingPartyWebForms/login.aspx.designer.cs9
-rw-r--r--src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs34
4 files changed, 1 insertions, 46 deletions
diff --git a/samples/OpenIdRelyingPartyWebForms/login.aspx b/samples/OpenIdRelyingPartyWebForms/login.aspx
index 6e66fd3..20294e7 100644
--- a/samples/OpenIdRelyingPartyWebForms/login.aspx
+++ b/samples/OpenIdRelyingPartyWebForms/login.aspx
@@ -13,7 +13,6 @@
<asp:CheckBox ID="requireSslCheckBox" runat="server"
Text="RequireSsl (high security) mode"
oncheckedchanged="requireSslCheckBox_CheckedChanged" /><br />
- <asp:CheckBox ID="immediateCheckBox" runat="server" Text="Immediate mode" /><br />
<asp:CheckBoxList runat="server" ID="papePolicies">
<asp:ListItem Text="Request phishing resistant authentication" Value="http://schemas.openid.net/pape/policies/2007/06/phishing-resistant" />
<asp:ListItem Text="Request multi-factor authentication" Value="http://schemas.openid.net/pape/policies/2007/06/multi-factor" />
diff --git a/samples/OpenIdRelyingPartyWebForms/login.aspx.cs b/samples/OpenIdRelyingPartyWebForms/login.aspx.cs
index 37a714c..fb961dd 100644
--- a/samples/OpenIdRelyingPartyWebForms/login.aspx.cs
+++ b/samples/OpenIdRelyingPartyWebForms/login.aspx.cs
@@ -50,9 +50,6 @@ namespace OpenIdRelyingPartyWebForms {
}
private void prepareRequest(IAuthenticationRequest request) {
- // Setup is the default for the login control. But the user may have checked the box to override that.
- request.Mode = this.immediateCheckBox.Checked ? AuthenticationRequestMode.Immediate : AuthenticationRequestMode.Setup;
-
// Collect the PAPE policies requested by the user.
List<string> policies = new List<string>();
foreach (ListItem item in this.papePolicies.Items) {
diff --git a/samples/OpenIdRelyingPartyWebForms/login.aspx.designer.cs b/samples/OpenIdRelyingPartyWebForms/login.aspx.designer.cs
index d175fc8..60de3ff 100644
--- a/samples/OpenIdRelyingPartyWebForms/login.aspx.designer.cs
+++ b/samples/OpenIdRelyingPartyWebForms/login.aspx.designer.cs
@@ -32,15 +32,6 @@ namespace OpenIdRelyingPartyWebForms {
protected global::System.Web.UI.WebControls.CheckBox requireSslCheckBox;
/// <summary>
- /// immediateCheckBox control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.CheckBox immediateCheckBox;
-
- /// <summary>
/// papePolicies control.
/// </summary>
/// <remarks>
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs
index 1eea315..831c53c 100644
--- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs
+++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs
@@ -156,11 +156,6 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
private const string StatelessViewStateKey = "Stateless";
/// <summary>
- /// The viewstate key to use for the <see cref="ImmediateMode"/> property.
- /// </summary>
- private const string ImmediateModeViewStateKey = "ImmediateMode";
-
- /// <summary>
/// The viewstate key to use for the <see cref="RequestBirthDate"/> property.
/// </summary>
private const string RequestBirthDateViewStateKey = "RequestBirthDate";
@@ -195,11 +190,6 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
private const bool RequireSslDefault = false;
/// <summary>
- /// The default value for the <see cref="ImmediateMode"/> property.
- /// </summary>
- private const bool ImmediateModeDefault = false;
-
- /// <summary>
/// The default value for the <see cref="Stateless"/> property.
/// </summary>
private const bool StatelessDefault = false;
@@ -438,28 +428,6 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
}
/// <summary>
- /// Gets or sets a value indicating whether to use immediate mode in the
- /// OpenID protocol.
- /// </summary>
- /// <value>
- /// True if a Provider should reply immediately to the authentication request
- /// without interacting with the user. False if the Provider can take time
- /// to authenticate the user in order to complete an authentication attempt.
- /// </value>
- /// <remarks>
- /// Setting this to true is sometimes useful in AJAX scenarios. Setting this to
- /// true can cause failed authentications when the user truly controls an
- /// Identifier, but must complete an authentication step with the Provider before
- /// the Provider will approve the login from this relying party.
- /// </remarks>
- [Bindable(true), DefaultValue(ImmediateModeDefault), Category(BehaviorCategory)]
- [Description("Whether the Provider should respond immediately to an authentication attempt without interacting with the user.")]
- public bool ImmediateMode {
- get { return (bool)(ViewState[ImmediateModeViewStateKey] ?? ImmediateModeDefault); }
- set { ViewState[ImmediateModeViewStateKey] = value; }
- }
-
- /// <summary>
/// Gets or sets a value indicating whether stateless mode is used.
/// </summary>
[Bindable(true), DefaultValue(StatelessDefault), Category(BehaviorCategory)]
@@ -933,7 +901,7 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
// the "approximation" is exactly what we want.
this.Request = this.RelyingParty.CreateRequest(userSuppliedIdentifier, typedRealm, returnToApproximation);
}
- this.Request.Mode = this.ImmediateMode ? AuthenticationRequestMode.Immediate : AuthenticationRequestMode.Setup;
+
if (this.EnableRequestProfile) {
this.AddProfileArgs(this.Request);
}