Menu

#1 Feature: Log in functionality for Windows Authenticated

1.0
closed
None
2013-03-22
2013-03-22
No

Feature: Log in functionality for Windows Authenticated

Discussion

  • Stephen Brett

    Stephen Brett - 2013-03-22

    To use Windows Authentication

    1. In the server project, open the Web.config file.
    2. In the authentication element, set the mode property to Windows and remove the forms element.
      <authentication mode="Windows">
      </authentication>
    3. In the client project, open the code-behind file (App.xaml.cs or App.xaml.vb) for the App.xaml file.
    4. In the constructor, uncomment the line that sets the Authentication property to WindowsAuthentication and comment out the line that sets the property to FormsAuthentication.
      public App()
      {
      InitializeComponent();
      WebContext webContext = new WebContext();
      //webContext.Authentication = new FormsAuthentication();
      webContext.Authentication = new WindowsAuthentication();
      this.ApplicationLifetimeObjects.Add(webContext);
      }
    5. Build and run (F5) the application.
     
  • Stephen Brett

    Stephen Brett - 2013-03-22
    • status: open --> closed
     
  • Stephen Brett

    Stephen Brett - 2013-03-22

    Feature now Added
    Revision #7

     

Log in to post a comment.

MongoDB Logo MongoDB