SecureBlackbox 2020 Python Edition

Questions / Feedback?

on_auth_attempt Event

Fires when a connected client makes an authentication attempt.

Syntax

class TSPServerAuthAttemptEventParams(object):
  @property
  def connection_id() -> int: ...
  @property
  def username() -> str: ...
  @property
  def password() -> str: ...
  @property
  def allow() -> bool: ...
  @allow.setter
  def allow(value) -> None: ...

# In class TSPServer:
@property
def on_auth_attempt() -> Callable[[TSPServerAuthAttemptEventParams], None]: ...
@on_auth_attempt.setter
def on_auth_attempt(event_hook: Callable[[TSPServerAuthAttemptEventParams], None]) -> None: ...

Remarks

The class fires this event whenever a client attempts to authenticate itself. Use the Allow parameter to let the client through.

ConnectionID contains the unique session identifier for that client, and Username and Password contain the professed credentials.

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