G
Geoff Pennington
I have two applications running on the same server. The URL for one is
http://mydomain/app1/ and the other is http://mydomain/app2/ . Currently the
login and authentication is handled by each application, but we want to use
one login screen that will handle authentication for both apps. We have
created a new application at http://mydomain/sharedApp/ for this purpose.
There are a lot of samples on the internet showing how to set up the
web.config and it looks like a simple thing to do. But when I try using the
shared login (http://mydomain/sharedApp/login.aspx ) I get to the point in
my code (login.aspx.vb) where it has the Redirect to the home page of the
requested application, and then I get a system generated popup asking for an
ID and password. Entering either my network credentials (should not be
necessary, I am already logged onto the network) or my application defined
credentials does not help. I end with a big ugly "Access denied" screen.
Following the examples I have found, I placed the following in the
web.config of each application:
<authentication mode="Forms">
<forms name=".ELECTRONICDD562" loginUrl="/sharedApp/Login.aspx"
protection="All" timeout="180" path="/"/>
</authentication>
<machineKey
validationKey='9EB85D0934D1D93D7698498D2E198A8892FBD9018A9CC159D6DC69A546DCAA286CE6EAC06DFDE003D8F1394CEDAA709112AB33558CA87377B46DF4CA3A991F51'
decryptionKey='1063568D30161DE2EC969111B901F54B48DB8573B2F4BEE7'
validation='SHA1' />
I got the validation and decryption keys from a utility at
http://www.eggheadcafe.com/articles/GenerateMachineKey/GenerateMachineKey.aspx
Might that be the problem?
I've been spinning my wheels on this for several days and it doesn't look
like it should be this hard. Any ideas?
Much obliged.
http://mydomain/app1/ and the other is http://mydomain/app2/ . Currently the
login and authentication is handled by each application, but we want to use
one login screen that will handle authentication for both apps. We have
created a new application at http://mydomain/sharedApp/ for this purpose.
There are a lot of samples on the internet showing how to set up the
web.config and it looks like a simple thing to do. But when I try using the
shared login (http://mydomain/sharedApp/login.aspx ) I get to the point in
my code (login.aspx.vb) where it has the Redirect to the home page of the
requested application, and then I get a system generated popup asking for an
ID and password. Entering either my network credentials (should not be
necessary, I am already logged onto the network) or my application defined
credentials does not help. I end with a big ugly "Access denied" screen.
Following the examples I have found, I placed the following in the
web.config of each application:
<authentication mode="Forms">
<forms name=".ELECTRONICDD562" loginUrl="/sharedApp/Login.aspx"
protection="All" timeout="180" path="/"/>
</authentication>
<machineKey
validationKey='9EB85D0934D1D93D7698498D2E198A8892FBD9018A9CC159D6DC69A546DCAA286CE6EAC06DFDE003D8F1394CEDAA709112AB33558CA87377B46DF4CA3A991F51'
decryptionKey='1063568D30161DE2EC969111B901F54B48DB8573B2F4BEE7'
validation='SHA1' />
I got the validation and decryption keys from a utility at
http://www.eggheadcafe.com/articles/GenerateMachineKey/GenerateMachineKey.aspx
Might that be the problem?
I've been spinning my wheels on this for several days and it doesn't look
like it should be this hard. Any ideas?
Much obliged.