implement logon page, use ngcookies

if user visit the site first time, he will be asked to
enter username and password, and his identity will be saved into
cookies, then he will be not asked for identity next time he login.