mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
API: Support HTTP basic authentication for API. v6.0.4, v5.0.152 (#3458)
Co-authored-by: winlin <winlin@vip.126.com> Co-authored-by: john <hondaxiao@tencent.com>
This commit is contained in:
parent
571043ff3d
commit
771ae0a1a6
15 changed files with 660 additions and 50 deletions
|
@ -1021,6 +1021,12 @@ public:
|
|||
virtual bool get_raw_api_allow_query();
|
||||
// Whether allow rpc update.
|
||||
virtual bool get_raw_api_allow_update();
|
||||
// Whether http api auth enabled.
|
||||
virtual bool get_http_api_auth_enabled();
|
||||
// Get the http api auth username.
|
||||
virtual std::string get_http_api_auth_username();
|
||||
// Get the http api auth password.
|
||||
virtual std::string get_http_api_auth_password();
|
||||
// https api section
|
||||
private:
|
||||
SrsConfDirective* get_https_api();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue