From ecf25e3c1a022f60e6c11a09d0fe3b1fbd9c888f Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Tue, 14 Jan 2025 15:15:44 -1000 Subject: [PATCH] 2nd Remove adding credentials to Web.config See #1766 --- .../troubleshooting-forms-authentication.md | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/support/developer/webapps/iis/www-authentication-authorization/troubleshooting-forms-authentication.md b/support/developer/webapps/iis/www-authentication-authorization/troubleshooting-forms-authentication.md index 4b65fe07ca..8e3cbf6624 100644 --- a/support/developer/webapps/iis/www-authentication-authorization/troubleshooting-forms-authentication.md +++ b/support/developer/webapps/iis/www-authentication-authorization/troubleshooting-forms-authentication.md @@ -31,18 +31,7 @@ The following is an entry from the *Machine.config* file: ``` -You can configure forms authentication by using the authentication configuration element. For instance, you have a login page. In the configuration file, you specify a URL to redirect unauthenticated requests to the login page. Then define valid credentials, either in the *Web.config* file or in a separate file. The following example shows a section from a configuration file that specifies a login page and authentication credentials for the `Authenticate` method. The passwords have been encrypted by using the `HashPasswordForStoringInConfigFile` method. - -```xml - - - - - - - - -``` +You can configure forms authentication by using the authentication configuration element. For instance, you have a login page. In the configuration file, you specify a URL to redirect unauthenticated requests to the login page. After successful authentication, the `FormsAuthenticationModule` module sets the value of the User property to a reference to the authenticated user. The following code example shows how to programmatically read the identity of the forms-authenticated user.