Effective and Efficient Authentication and Authorization in Distributed Systems