Authn and authz using CI_JOB_TOKEN lookup

Edited by Mikhail Mazurskiy