Skip to main content
Definition: ModelCenter/src/ModelCenter.odl (line 4918) The Login Callback allows non-ModelCenter processes to hook into ModelCenter’s authentication. Primarily used when running ModelCenter in server mode.

Members

Public functions

Function requestAuthCredentials

Called when ModelCenter needs to request a username and password. Parameters:
  • uri: URI authenticating to
  • isFailedAttempt: true if request is due to previous failed attempt, false otherwise
  • username: Username to use. Cannot be null.
  • password: Password to use. Cannot be null.
  • savePassword: True if password should be saved, false otherwise. Cannot be null.
Returns: true if username/password is submitted, false otherwise Exceptions:
  • COM: exception if username, password, or savePassword is null
Parameters:
  • BSTR uri
  • boolean isFailedAttempt
  • VARIANT * username
  • VARIANT * password
  • VARIANT * savePassword
Return type: boolean

Function loginSucceeded

Called when ModelCenter succeeds in authentication. Parameters:
  • uri: URI successfully authenticated to
  • username: username that successfully authenticated
  • password: password that successfully authenticated
  • savePassword: true if password should be saved, false otherwise
Parameters:
  • BSTR uri
  • BSTR username
  • BSTR password
  • boolean savePassword
Return type: void

Function verifySslWarning

Called when ModelCenter needs an SSL warning to be verified/accepted. Parameters:
  • msg: message to display to user
Returns: true if ModelCenter should proceed, false otherwse Parameters:
  • BSTR msg
Return type: boolean