By default, no authentication is required to access your static assets.
With our platform you can set a password protection to a particular environment to restrict access to authorized users only.
To activate authentication on an environment, you have to add authorized users to an anviroment using the command below:
npx warp env auth basic add [user] [password]
During the command you will have to select a project and the environment you want to protect. If you don't have fill the command with parameters you will be invited to enter a user name and a password.
- you can add authentication for multiple users,
- you have to deploy to enable the authentication.
After deployment, when accessing your assets you'll be invite to enter credential.
To disable authentication on an environment, you have to delete authorized users to an anviroment using the command below:
npx warp env auth basic delete [user]
- The authentication is enabled if at least one user is assigned to authentication otherwise is it disabled,
- you have to deploy to enable the change.
Have a look to our reference documentation