[add] global authentication

use debug;
fix prefixPattern;
0.7.0

[skip ci]