EnginioOAuth2Authentication QML Type

Represents a user that is authenticated directly by the backend using OAuth2 standard. More...

Import Statement: import Enginio 1.0
Since: Qt 5.3
Instantiates: EnginioOAuth2Authentication

Properties

Detailed Description

This component can authenticate a user by verifying the user's login and password. The user has to exist in the backend already.

To authenticate an instance of EnginioClient called client such code may be used:

EnginioClient {
    ...
    identity: oauth2
}
EnginioOAuth2Authentication {
    id: oauth2
    user: "userName"
    password: "userPassword"
}

Setting the identity on the EnginioClient will trigger an asynchronous request, resulting in EnginioClient::authenticationState changing.

See also EnginioClient::authenticationState, EnginioClient::identity, EnginioClient::sessionAuthenticated, EnginioClient::sessionAuthenticationError(), and EnginioClient::sessionTerminated().

Property Documentation

password : string

This property contains the password used for authentication.


user : string

This property contains the user name used for authentication.


© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.