Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix docstring formatting
  • Loading branch information
chlowell committed Jul 31, 2019
commit 39ea2a76f3d0bdba39dcca7da5904ccf49176cdb
15 changes: 9 additions & 6 deletions sdk/identity/azure-identity/azure/identity/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,12 @@ class DeviceCodeCredential(PublicClientCredential):

**Keyword arguments:**

*tenant (str)* - a tenant ID or a domain associated with a tenant. If not provided, the credential defaults to the
'organizations' tenant, which supports only Azure Active Directory work or school accounts.
*timeout (int)* - seconds to wait for the user to authenticate. Defaults to the validity period of the device code
as set by Azure Active Directory, which also prevails when ``timeout`` is longer.
- *tenant (str)* - tenant ID or a domain associated with a tenant. If not provided, the credential defaults to the
'organizations' tenant, which supports only Azure Active Directory work or school accounts.

- *timeout (int)* - seconds to wait for the user to authenticate. Defaults to the validity period of the device code
as set by Azure Active Directory, which also prevails when ``timeout`` is longer.

"""

def __init__(self, client_id, prompt_callback=None, **kwargs):
Expand Down Expand Up @@ -345,8 +347,9 @@ class UsernamePasswordCredential(PublicClientCredential):

**Keyword arguments:**

*tenant (str)* - a tenant ID or a domain associated with a tenant. If not provided, the credential defaults to the
'organizations' tenant.
- **tenant (str)** - a tenant ID or a domain associated with a tenant. If not provided, defaults to the
'organizations' tenant.

"""

def __init__(self, client_id, username, password, **kwargs):
Expand Down