|
Home > Archive > Microsoft Content Management Server > February 2005 > https for manuallogin.aspx
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
https for manuallogin.aspx
|
|
|
| Just wondering if there is any good info on how to set up https for
manuallogin.aspx for a public mcms site based on Woodgrove
| |
| Stefan [MSFT] 2005-02-20, 6:12 pm |
| Hi Ilona,
check out the MCMS documentation it demonstrates this in detail:
http://msdn.microsoft.com/library/e....asp?frame=true
(see step 2 for SSL)
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/3lh8s
----------------------
"ilona" <ilona_scrambled@no-go.com> wrote in message
news:O6iP3xtFFHA.4016@TK2MSFTNGP09.phx.gbl...
> Just wondering if there is any good info on how to set up https for
> manuallogin.aspx for a public mcms site based on Woodgrove
>
>
| |
|
| Stefan,
adding the suggeted code
if(!Request.IsSecureConnection)
{
ResponseRedirect(https://www.site.com/websitedirectory/ManualLogin.aspx);
}
else
{
//read values from resource file and assign them
}
to ManualLogin.aspx Page_load handler seems to throw the request for the
login page into the infinite loop of redirection w/message "redirecting to
secure connection" followed by message " redirecting to connection that is
not secure".
Here is the rest of the code in ManualLogin.aspx:
override protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
LocalizationResourceManager = (ResourceManager)
Application["stlbsaResourceManager"];
}
private void InitializeComponent()
{
this.TxtInsDomains.ServerChange += new
System.EventHandler(this.TxtInsDomains_ServerChange);
this.TxtNTPassword.ServerChange += new
System.EventHandler(this.TxtNTPassword_ServerChange);
this.ManualLoginSubmit.ServerClick += new
System.EventHandler(this.ManualLoginSubmit_ServerClick);
this.Load += new System.EventHandler(this.Page_Load);
}
private void Page_Load(object sender, System.EventArgs e)
{
if (System.Configuration.ConfigurationSettings.AppSettings["McmsDomain"] !=
null)
tablerow.Visible=false;
else
LTManualLoginDomain.Text =
LocalizationResourceManager.GetString("LoginDomain");
LTManualLoginNTUserName.Text =
LocalizationResourceManager.GetString("LoginNTUserName");
LTManualLoginNTPassword.Text =
LocalizationResourceManager.GetString("LoginNTPassword");
LTManualLoginRememberCredentials.Text =
LocalizationResourceManager.GetString("LoginRememberCredentials");
ManualLoginSubmit.Value =
LocalizationResourceManager.GetString("LoginButton");
LTInvalidUserMessage=
LocalizationResourceManager.GetString("InvalidUserMessage");
LTAccessDeniedMessage =
LocalizationResourceManager.GetString("AccessDeniedMessage");
LTGeneralExceptionMessage =
LocalizationResourceManager.GetString("GeneralExceptionMessage");
LTArgumentOutOfRangeExceptionMessage =
LocalizationResourceManager.GetString("ArgumentOutOfRangeExceptionMessage");
}
"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:%23RZIl%232FFHA.2144@TK2MSFTNGP09.phx.gbl...
> Hi Ilona,
>
> check out the MCMS documentation it demonstrates this in detail:
>
http://msdn.microsoft.com/library/e....asp?frame=true
>
> (see step 2 for SSL)
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
> Book: Building Websites Using MCMS: http://tinyurl.com/3lh8s
> ----------------------
>
>
> "ilona" <ilona_scrambled@no-go.com> wrote in message
> news:O6iP3xtFFHA.4016@TK2MSFTNGP09.phx.gbl...
>
>
| |
| Stefan [MSFT] 2005-02-28, 7:57 am |
| Hi Ilona,
the code below does not contain a redirect to http. So this is done
somewhere else.
Is there a publishing proxy or ISA server in front or a HttpModule that
might intercept?
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/56jt8
----------------------
"ilona" <ilona_scrambled@no-go.com> wrote in message
news:eje103THFHA.2276@TK2MSFTNGP15.phx.gbl...
> Stefan,
> adding the suggeted code
> if(!Request.IsSecureConnection)
> {
> ResponseRedirect(https://www.site.com/websitedirectory/ManualLogin.aspx);
> }
> else
> {
> //read values from resource file and assign them
> }
>
> to ManualLogin.aspx Page_load handler seems to throw the request for the
> login page into the infinite loop of redirection w/message "redirecting to
> secure connection" followed by message " redirecting to connection that is
> not secure".
>
> Here is the rest of the code in ManualLogin.aspx:
>
> override protected void OnInit(EventArgs e)
>
> {
>
>
> InitializeComponent();
>
> base.OnInit(e);
>
> LocalizationResourceManager = (ResourceManager)
> Application["stlbsaResourceManager"];
>
> }
>
>
>
>
> private void InitializeComponent()
>
> {
>
> this.TxtInsDomains.ServerChange += new
> System.EventHandler(this.TxtInsDomains_ServerChange);
>
> this.TxtNTPassword.ServerChange += new
> System.EventHandler(this.TxtNTPassword_ServerChange);
>
> this.ManualLoginSubmit.ServerClick += new
> System.EventHandler(this.ManualLoginSubmit_ServerClick);
>
> this.Load += new System.EventHandler(this.Page_Load);
>
> }
>
> private void Page_Load(object sender, System.EventArgs e)
>
> {
>
>
>
>
>
> if (System.Configuration.ConfigurationSettings.AppSettings["McmsDomain"]
!=
> null)
>
> tablerow.Visible=false;
>
> else
>
> LTManualLoginDomain.Text =
> LocalizationResourceManager.GetString("LoginDomain");
>
> LTManualLoginNTUserName.Text =
> LocalizationResourceManager.GetString("LoginNTUserName");
>
> LTManualLoginNTPassword.Text =
> LocalizationResourceManager.GetString("LoginNTPassword");
>
> LTManualLoginRememberCredentials.Text =
> LocalizationResourceManager.GetString("LoginRememberCredentials");
>
> ManualLoginSubmit.Value =
> LocalizationResourceManager.GetString("LoginButton");
>
> LTInvalidUserMessage=
> LocalizationResourceManager.GetString("InvalidUserMessage");
>
> LTAccessDeniedMessage =
> LocalizationResourceManager.GetString("AccessDeniedMessage");
>
> LTGeneralExceptionMessage =
> LocalizationResourceManager.GetString("GeneralExceptionMessage");
>
> LTArgumentOutOfRangeExceptionMessage =
>
LocalizationResourceManager.GetString("ArgumentOutOfRangeExceptionMessage");
>
> }
>
>
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
> news:%23RZIl%232FFHA.2144@TK2MSFTNGP09.phx.gbl...
>
http://msdn.microsoft.com/library/e....asp?frame=true
rights[vbcol=seagreen]
>
>
| |
|
| Hi, Stefan
You are right- there is no redirect code that would make this happen, so it
seems kind of odd. That is why I have this question.
There is a NetScreen firewall in front of the web server but it works only
in the routing mode (transparent), it does not proxy. The site uses your
SSLhttp module to secure things in particular channels. However,
manualLogin.aspx page does not belong to any channel.
"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:e0QDnuYHFHA.4032@TK2MSFTNGP12.phx.gbl...
> Hi Ilona,
>
> the code below does not contain a redirect to http. So this is done
> somewhere else.
> Is there a publishing proxy or ISA server in front or a HttpModule that
> might intercept?
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
> Book: Building Websites Using MCMS: http://tinyurl.com/56jt8
> ----------------------
>
>
> "ilona" <ilona_scrambled@no-go.com> wrote in message
> news:eje103THFHA.2276@TK2MSFTNGP15.phx.gbl...
ResponseRedirect(https://www.site.com/websitedirectory/ManualLogin.aspx);[vbcol=seagreen]
to[vbcol=seagreen]
is[vbcol=seagreen]
> !=
>
LocalizationResourceManager.GetString("ArgumentOutOfRangeExceptionMessage");
>
http://msdn.microsoft.com/library/e....asp?frame=true
> rights
>
>
| |
| Stefan [MSFT] 2005-02-28, 5:53 pm |
| Hi Ilona,
you need to identify which component is doing the unwanted redirect.
Start be disabling my httpmodule. If this does not resolve it check for any
further custom code.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/56jt8
----------------------
"ilona" <ilona_scrambled@no-go.com> wrote in message
news:ehciKBcHFHA.896@TK2MSFTNGP10.phx.gbl...
> Hi, Stefan
> You are right- there is no redirect code that would make this happen, so
it
> seems kind of odd. That is why I have this question.
> There is a NetScreen firewall in front of the web server but it works only
> in the routing mode (transparent), it does not proxy. The site uses your
> SSLhttp module to secure things in particular channels. However,
> manualLogin.aspx page does not belong to any channel.
>
>
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
> news:e0QDnuYHFHA.4032@TK2MSFTNGP12.phx.gbl...
rights[vbcol=seagreen]
> ResponseRedirect(https://www.site.com/websitedirectory/ManualLogin.aspx);
the[vbcol=seagreen]
"redirecting[vbcol=seagreen]
> to
that[vbcol=seagreen]
> is
(System.Configuration.ConfigurationSettings.AppSettings["McmsDomain"][vbcol=seagreen]
>
LocalizationResourceManager.GetString("ArgumentOutOfRangeExceptionMessage");
>
http://msdn.microsoft.com/library/e....asp?frame=true
for[vbcol=seagreen]
>
>
|
|
|
|
|