An interface for handling ArcGIS authentication challenges. More...
Header | #include <Authentication/ |
Since | Esri |
Inherits | Q |
Public Functions
virtual | ~ |
Protected Functions
ArcGIS | |
virtual void | handle |
Detailed Description
Member Function Documentation
[explicit protected]
ArcGISAuthenticationChallengeHandler::ArcGISAuthenticationChallengeHandler (QObject *parent = nullptr)
Default constructor with an optional parent.
[override virtual noexcept]
ArcGISAuthenticationChallengeHandler::~ArcGISAuthenticationChallengeHandler ()
Destructor
[pure virtual protected]
void ArcGISAuthenticationChallengeHandler::handleArcGISAuthenticationChallenge (Esri::ArcGISRuntime::Authentication::ArcGISAuthenticationChallenge *challenge)
Use ArcGISAuthenticationChallenge::continueWithCredential, ArcGISAuthenticationChallenge::continueAndFail, or ArcGISAuthenticationChallenge::cancel to handle the challenge. The credential provided while handling an authentication challenge is placed in the ArcGIS credential store of the ArcGISRuntimeEnvironment::authenticationManager and used by all subsequent requests that have a matching server context.
- challenge - The challenge to be handled.
It is recommended to use RAII techniques to delete challenges after they are responded to. All challenges are owned by the handler itself, and will persist until the handler is deleted.
void handleArcGISAuthenticationChallenge(ArcGISAuthenticationChallenge* challenge) override { credential = // create appropriate credential ... challenge->continueWithCredential(credential); challenge->deleteLater(); }
See also ArcGISCredential::serverContext.