Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1750652969, "reponame":"libwebsockets", "desc":"libwebsockets lightweight C networking library", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets", "f":3, "items": [ { "schema":"libjg2-1", "oid":{ "oid": "82783aefcc9e88fba798bd5a56482b816a56be4f", "alias": [ "refs/tags/v4.1.4"]},"tree": [ { "name": "mount-origin","mode": "16384", "size":0}, { "name": "mount-secret-origin","mode": "16384", "size":0}, { "name": "CMakeLists.txt","mode": "33188", "size":794}, { "name": "README.md","mode": "33188", "size":868}, { "name": "ba-passwords","mode": "33188", "size":14}, { "name": "minimal-http-server-basicauth.c","mode": "33188", "size":3239}],"s":{"c":1750652969,"u": 652}} ,{"schema":"libjg2-1", "cid":"d508af83ef1b58083b86d33c94938837", "oid":{ "oid": "82783aefcc9e88fba798bd5a56482b816a56be4f", "alias": [ "refs/tags/v4.1.4"]},"blobname": "minimal-examples/http-server/minimal-http-server-basicauth/README.md", "blob": "# lws minimal http server basic auth\n\nThis demonstrates how to protect a mount using a password\nfile outside of the mount itself.\n\nThe demo has two mounts, a normal one at / and one protected\nby basic auth at /secret.\n\nThe file at ./ba-passwords contains valid user:password\ncombinations.\n\n## Discovering the authenticated user\n\nAfter a successful authentication, the `WSI_TOKEN_HTTP_AUTHORIZATION` token\ncontains the authenticated username.\n\n## build\n\n```\n $ cmake . \u0026\u0026 make\n```\n\n## usage\n\n```\n $ ./lws-minimal-http-server-basic-auth\n[2018/04/19 08:40:05:1333] USER: LWS minimal http server basic auth | visit http://localhost:7681\n[2018/04/19 08:40:05:1333] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 off\n```\n\nVisit http://localhost:7681, and follow the link there to the secret area.\n\nGive your browser \u0022user\u0022 and \u0022password\u0022 as the credentials.\n\n","s":{"c":1750652969,"u": 64}} ],"g": 2398,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 1, "si": 0, "db":0, "di":1, "sat":0, "lfc": "0000"}