add non restful authorize support

add non restful authorize support