We are trying to log into our GitHub server using pygithub as follows below. Note that 'token_bla_bla' is the token that we have generated in GitHub for that user:
g = Github(login_or_token='token_bla_bla', base_url='https://github.company.com')
We then attempt to get the user object and print that by doing:
u = g.get_user()
print u
but we get AuthenticatedUser(login=None) printed.
Does anyone know how to resolve this so we can log in, in order to create and work with repos in our company server?
Thanks in advance :)