Back to product page
- Introduction
- Overview
- License agreement
- Getting Started
- Objects
- Enumerations
- wodSFTP
- Methods
- Abort
- About
- AppendData
- AppendFile
- Connect
- DeleteFile
- DeleteFiles
- Disconnect
- ExtendedCmd
- GetAttributes
- GetData
- GetDataAt
- GetFile
- GetFileAt
- GetFiles
- ListAttributes
- ListDir
- ListNames
- LoopFiles
- MakeDir
- PutData
- PutDataAt
- PutFile
- PutFileAt
- PutFiles
- RealPath
- RemoteClose
- RemoteOpen
- RemoteRead
- RemoteWrite
- RemoveDir
- Rename
- SetAttributes
- SetAttributes64
- Properties
- Authentication
- Blocking
- BufferSize
- ClientName
- Compression
- Encryption
- EncryptionList
- ErrorText
- Extensions
- FingerPrint
- FIPS
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- KeySignatureList
- LastError
- ListItem
- LocalPath
- Login
- MaxTransferRate
- MyHostname
- MyIP
- Notification
- Password
- Port
- PrivateKey
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- RemotePath
- Resume
- ServerErrorCode
- ServerErrorText
- State
- StateText
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Events
- Methods
- IwodSFTPNotify
- SftpItem
- SftpItems
- How to get support?
- Technical information
- Fast notifications interface
- Error list
LoginChallenge method
Called when the server requests a response to a login challenge.
Type
NoneSyntax
- Basic
object.LoginChallenge Owner, Challenge, Response
The LoginChallenge(object,Owner,Challenge,Response) syntax has these parts:
The LoginChallenge(object,Owner,Challenge,Response) syntax has these parts:
object | An expression evaluating to an object of type IwodSFTPNotify. |
Owner | A wodSFTPCom object. |
Challenge | A String value. Holds the challenge expression provided by the server. |
Response | A String value. Value you should provide as answer to the challenge. |
Remarks
This method is only called if you implemented the IwodSFTPNotify interface in your application and the wodSFTP.Notification property has received a reference to an instance of your implementation.The LoginChallenge notification method will be called when wodSFTP tries to use KeyboardInteractive authentication. This type of authentication is selected when you set Authentication = AuthPassword (or AuthAny by default) but password authentication fails. In this case wodSFTP tries KeyboardInteractive authentication (if available on the server) where the server sends a 'challenge' request that is shown on the user's screen and you must answer with the proper response in order to be authenticated.
Often, the server just sends something like 'please enter your password', but on some configurations this can be virtually any question. For example, the server may ask you to enter your one-time-password or your token ID.