Security tools for authentication and authorization