Distributed OAuth like authentication workflow