Revert "add header authentication and render_unauthorised"

This reverts commit e7d52c1cfdfa236550d5ffd82f8b8522ed38b973.
add header authentication and render_unauthorised