moving authentication to api controller
removing uniq
auth method
Revert "auth method"

This reverts commit 2202c961d8b22863f3b77f2a06565ab6d71b6857.