Implemented authentication and authorisation

Only GitHub has been implemented so far.