Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 549 Bytes

basic-authentication.md

File metadata and controls

26 lines (21 loc) · 549 Bytes

Basic Authentication

CommandBox's web server supports enabling Basic Auth on your sites.

server set web.basicAuth.enabled=true
server set web.basicAuth.users.brad=pass
server set web.basicAuth.users.luis=pass2

That will create the following data in your server.json, which will be picked up the next time you start your server.

{
    "web":{
        "basicAuth":{
            "users":{
                "brad":"pass",
                "luis":"pass2"
            },
            "enabled":"true"
        }
    }
}