Implement getting the authentication link
This commit is contained in:
parent
87d96f6c41
commit
ed5fd3dafd
|
@ -19,6 +19,16 @@ class Verify(util.Base):
|
|||
"""
|
||||
Get an external authentication link for a user.
|
||||
"""
|
||||
# /resources/sdkIntegrations/levels/{levelName}/websdkLink?ttlInSecs={lifetime}&externalUserId={externalUserId}&lang={locale}
|
||||
url = (
|
||||
f"{settings.Verify.Base}/resources/sdkIntegrations/levels/{settings.Verify.LevelName}"
|
||||
f"/websdkLink?ttlInSecs=36000&externalUserId={external_user_id}"
|
||||
)
|
||||
resp = self.sign_request(requests.Request("POST", url))
|
||||
s = requests.Session()
|
||||
response = s.send(resp)
|
||||
verification_url = response.json()["url"]
|
||||
return verification_url
|
||||
|
||||
def get_applicant_status(self, applicant_id):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue