Question: Is there any function getting username/password nginx.conf in basic authorization?

Thanks.

Answer: 
You can use standard variable **$remote\_user** wich means *user name supplied with the Basic authentication*.

<http://nginx.org/en/docs/http/ngx_http_core_module.html#var_remote_user>
with nginx 3rd-party module [FRiCKLE/ngx\_coolkit](https://github.com/FRiCKLE/ngx_coolkit), you can use `$remote_passwd` to get password. and nginx core has `$remote_user` .