Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0df76d6

Browse files
committed
Add docstrings in Delegated class
1 parent 5b31c90 commit 0df76d6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

auth0/v2/authentication/delegated.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,21 @@
33

44
class Delegated(AuthenticationBase):
55

6+
"""Delegated authentication endpoints.
7+
8+
Args:
9+
domain (str): Your auth0 domain (e.g: username.auth0.com)
10+
"""
11+
612
def __init__(self, domain):
713
self.domain = domain
814

915
def get_token(self, client_id, target, api_type, grant_type,
1016
id_token=None, refresh_token=None):
1117

18+
"""Obtain a delegation token.
19+
"""
20+
1221
if id_token and refresh_token:
1322
raise ValueError('Only one of id_token or refresh_token '
1423
'can be None')

0 commit comments

Comments
 (0)