Skip to content

Usage of creds parameter is deprecated in msrest service client #194

@jfthuong

Description

@jfthuong

The getting started provides the following code to establish a connection

# Create a connection to the org
credentials = BasicAuthentication('', personal_access_token)
connection = Connection(base_url=organization_url, creds=credentials)

However, while running this code, the following warning is raised:

c:\python37-32\lib\site-packages\msrest\service_client.py:260: DeprecationWarning: Creds parameter is deprecated. Set config.credentials instead.
    DeprecationWarning)

The example in Getting Started could be updated to provide the new way of setting the credentials.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions