Authentication

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
Authentication

Overview 

This section describes how to use the authentication demo in the TCP/IP Demo App HTTP2 demo. For information about how to implement authentication in your own page, see the HTTP2 Authentication topic

Instructions 

  1. Program your board with the demo code and upload the demo app web page. Open your web browser and navigate to the board's web page (http://mchpboard by default).
  2. Navigate to the Authentication page using the navigation panel on the left of the page.
  3. Note the authentication user name ("admin") and password ("microchip").
  4. Click on the "Access Restricted Page" link on the Authentication page.

  1. Enter an incorrect combination of usernames and passwords. The browser will not advance to the Access Restricted Page. After 3 incorrect username/password combinations, the browser will be redirected to an "Unauthorized" screen.
  2. Click the back button in your browser. Click on the "Access Restricted Page" link and enter the correct username and password.
  3. You will advance to the "Login Successful" page. Your browser will store this username/password combination until it is closed and reopened.

Exercise 

You can optionally complete the exercise described on the "Login Successful" page. In this exercise, you will change the username and password that you use to log in to this page.

  1. Open CustomHTTPApp.c in your TCP/IP Demo App MPLAB project.
  2. Locate the HTTPCheckAuth function.
  3. Change the values being compared to the function inputs to a username and password of you choosing.
  4. Rebuild your project and program your board.
Module
Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.