-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Be able to use with msrest #121
Comments
@Sl1ckR1ck please provide full traceback of the error |
Hi, sorry for the delay. Here is the traceback: Traceback (most recent call last): |
@Sl1ckR1ck can you add code snippet as well |
Here it is. However this will work best if you have a TFS Server available. from typing import Sequence
from typing import List
def main(p_Args:Sequence[str]) -> int:
from azure.devops.connection import Connection
from msrest.authentication import BasicAuthentication
from requests_ntlm import HttpNtlmAuth #type: ignore
p_UserName = "MyUserName" #change this to your TFS user name.
p_UserPassword = "MyTFSPassword"
#Change this to another TFS collection.
TFS_URL = "http://tfsServerTest:8080/tfs/TFSCollection/"
credentials=HttpNtlmAuth(p_UserName, p_UserPassword)
connection = Connection(base_url=TFS_URL, creds=credentials)
#This will fail...
core_client = connection.clients.get_core_client()
if "__main__" == __name__:
import sys
sys.dont_write_bytecode = True
sys.exit(main(sys.argv[1:])) Hopefully this helps? |
Hi, whenever i try to use this authentification with a package that uses msrest, i get a AttributeError: 'HttpNtlmAuth' object has no attribute 'signed_session'.
It would be nice if it would be supported (and possible?)
The text was updated successfully, but these errors were encountered: