SecureBlackbox 2020 Python Edition

Questions / Feedback?

continue_auth Method

Call this method to process an authentication token and proceed to the next authentication step.

Syntax

def continue_auth(state: str, auth_token: str) -> int: ...

Remarks

Call this method upon receiving an authentication token from the user to validate it and proceed to the next authentication step (or complete the authentication).

Pass the authentication state blob that you obtained at the beginning of the authentication step to the State parameter, and the authentication credential received from the user to the AuthToken parameter. The method will validate the token and return one of the following results:

arAuthFurtherAuthNeeded0
arAuthSucceeded1
arAuthFailed2

The further authentication needed result indicates that the user is expected to go through at least one more authentication step. Check auth_info property to find out which authentication method should be used on that step, and request the relevant authentication token from the user. Upon receiving that new token, call on_continue_auth again - and continue running this loop until authentication succeeded or authentication failed result is returned.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 Python Edition - Version 20.0 [Build 8154]