Authorization

add authorization function

<!---
@huboard:{"order":6.0,"custom_state":""}
-->