Ticket-based authentication using a custom/dynamic authenticator