Of course, like everything, there's more than one way of achieving this kind of result, and each way has its pros and cons. It will though, allow you to have authentication without having to type your password each time.