Microservices - Authentication and Authorization
Identify the error in this API key validation pseudocode:
function validateKey(request) {
key = request.headers['Authorization']
if (key = 'valid-key') {
return 'Access granted'
} else {
return 'Access denied'
}
}