AuthenticationView Class

  • AuthenticationView
  • class Esri::ArcGISRuntime::Toolkit::AuthenticationView

    A view for handling authentication challenges and automatically launching the appropriate UI for each type of authentication. More...

    Header: #include <AuthenticationView>
    Since: Esri.ArcGISRuntime 100.12

    Public Functions

    AuthenticationView(Esri::ArcGISRuntime::Toolkit::AuthenticationController *controller, QWidget *parent = nullptr)
    AuthenticationView(QWidget *parent = nullptr)
    ~AuthenticationView()
    Esri::ArcGISRuntime::Toolkit::AuthenticationController *controller() const
    void setController(Esri::ArcGISRuntime::Toolkit::AuthenticationController *controller)

    Signals

    Detailed Description

    Declare an AuthenticationView. The AuthenticationView will then be connected to all authentication challenges, and will automatically launch the appropriate view for the type of challenge. Supported security formats include:

    • ArcGIS Token (user credentials)
    • HTTP Basic (user credentials)
    • HTTP Digest (user credentials)
    • IWA (user credentials)
    • OAuth 2.0 (OAuth2)
    • SAML (OAuth2)
    • PKI (client certificate)
    • SSL Handshake Warnings (ssl)

    Note: OAuth 2.0 uses QWebEngineView. To use OAuth you must add QT += webenginewidgets to qmake. See QWebEngineView.

    Member Function Documentation

    [explicit] AuthenticationView::AuthenticationView(Esri::ArcGISRuntime::Toolkit::AuthenticationController *controller, QWidget *parent = nullptr)

    Constructor.

    [explicit] AuthenticationView::AuthenticationView(QWidget *parent = nullptr)

    Constructor.

    • parent Parent widget.

    Internally the view will create and maintain its own AuthenticationController.

    AuthenticationView::~AuthenticationView()

    Destructor.

    [signal] void AuthenticationView::authenticationControllerChanged()

    Emitted when the controller used to drive the view changes.

    Esri::ArcGISRuntime::Toolkit::AuthenticationController *AuthenticationView::controller() const

    Returns the controller.

    See also setController().

    void AuthenticationView::setController(Esri::ArcGISRuntime::Toolkit::AuthenticationController *controller)

    Sets the controller to controller.

    See also controller().

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

    You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

    Your ArcGIS portal

    Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

    Your ArcGIS Location Platform dashboard

    Manage billing, monitor service usage, and access additional resources.

    Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

    Close