Authentication verifies a user's identity by having them log in, while authorization determines which resources and pages the authenticated user has access to. For example, after authenticating normal and admin users on a website, authorization would prevent normal users from accessing admin pages. Authentication occurs before authorization and verifies the user, even if anonymously, while authorization checks the user's access rights after identity is confirmed.