Authorization¶
- To disable authorisation:
Set environment variable ‘ADMIN_AUTH_DISABLE=1’
os.environ['ADMIN_AUTH_DISABLE'] = '1'
or from shell:
export ADMIN_AUTH_DISABLE=1
- To define admin user & password:
check example/ folder to get code snippets
app = Sanic()
app.config["ADMIN_USER"] = "admin"
app.config["ADMIN_PASSWORD"] = "1234"