This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Authentication for Access Point Configurations

Other Parts Discussed in Thread: CC3200

Hi, 

I got a CC3200 running in AP mode. Now I want to put an authentication so that only an authorized person can change the settings of the AP (such as SSID etc) through its embedded web interface. As in standard routers etc, just needs a prompt asking username and password when the user types 192.168.1.1 (depends on the config).

Can someone help me on this with an example?

Thanks in advance

Cheers,

Sam

  • Hi,

    You can use http authentication from NWP web server, if username will be hard-coded inside firmware. But if you want configurable username/password, then only solution with current silicon revision is to use own http server in application processor. There is bug in NWP http server, which not worked with some usernames and password(s). From this reason is authentication in NWP http server useless. According information from TI, this bug can't be fixed by ServicePack.

    Example how to enable http authentication in NWP http server:

    
    
      // now I am not sure if enable is not 1
      unsigned char xx = 0;
      char yyy[30];
    
      sl_NetAppStop(SL_NET_APP_HTTP_SERVER_ID);
    
      // auth enable
      sl_NetAppSet(SL_NET_APP_HTTP_SERVER_ID,
                   NETAPP_SET_GET_HTTP_OPT_AUTH_CHECK,
                   sizeof(xx),
                   &xx);
    
      // http user
      sprintf(yy, "admin");
      sl_NetAppSet(SL_NET_APP_HTTP_SERVER_ID,
                   NETAPP_SET_GET_HTTP_OPT_AUTH_NAME,
                   strlen(yy),
                   (unsigned char *)&yyy);
    
      // http password (e.g. "trevor1" password not working due to NWP bug)
      sprintf(yyy, "trevor1");
      sl_NetAppSet(SL_NET_APP_HTTP_SERVER_ID,
                   NETAPP_SET_GET_HTTP_OPT_AUTH_PASSWORD,
                   strlen(yyy),
                   (unsigned char *)&yyy);
    
      // realm
      sprintf(yyy, "Enter password");
      sl_NetAppSet(SL_NET_APP_HTTP_SERVER_ID,
                   NETAPP_SET_GET_HTTP_OPT_AUTH_REALM,
                   strlen(yyy),
                   (unsigned char *)&yyy);
    
      sl_NetAppStart(SL_NET_APP_HTTP_SERVER_ID);
    

    Jan

  • Thanks Jan, Enable is 1 for your information