Skip to content

use basicauth for exposed editor #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const options = {
host: '127.0.0.1', // specify ip
port: 10021, // specify port or omit for random port usage
silent: false, // invoque browser or run silently
basicauth: "username:password" // if you want to protect the editor
};

openApiEditor.edit(options);
Expand All @@ -70,6 +71,10 @@ Optional port to run. Defaults to 0 or dynamically assigned port.

Automatically opens default browser. Defaults to true.

### ```--basicauth [optional username:password]```

Optional basic authentication,it is useful if you expose the editor in wild.

## Licence

This project is licensed under the MIT License
Expand Down
Loading