Added authorization

wip - Authorization