The doorknob with lock. People on the outside cannot open the door, however turning the doorknob from the inside automatically unlocks it.
Security is important, but that isn’t excuse for software to be laborious. Afford people the ability to both provide their credentials and their intentions.
For example, if they go to a secure area of the software and are forced to log in, after they log in you should automatically take them to wherever they originally wanted to go.