summaryrefslogtreecommitdiffstats
path: root/src/plugins/credentials
Commit message (Collapse)AuthorAgeFilesLines
* Adjust installation pathsPekka Vuorela2025-11-111-1/+1
| | | | | | | | | | | | | | | | Install headers and plugins to qt6 directory as it should have been long time already. Didn't touch .pro files as those don't work with current qt6 and are used more with qt5 build. Use common common 'messagingframework' container dir for plugins. The plugin type directly under qt plugins dir was confusing, and possibly even colliding with other qt plugins. Crypto at least seems used by qt itself. Change-Id: I2c674ba184a53d602dc2a1fc24f83a955268a166 Reviewed-by: <matti.viljanen@kapsi.fi> Reviewed-by: Damien Caliste <dcaliste@free.fr> Reviewed-by: Pekka Vuorela <pvuorela@iki.fi>
* Adjust messageserver naming versionsPekka Vuorela2025-11-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | On Qt6 it's strange to have messageserver5. Could have bumped the binary there to '6' but maybe we don't really need to highlight the qt version that much. The '5's were added to allow parallel installability but that really matters more on libraries etc rather than the server. We don't want parallel installed daemons fighting who gets autostarted first. Also on credential side it shouldn't matter which was the Qt version. Switching to newer version should still be about the same service. In practice don't think the names matter too much, and auth success is ignored so think it should be ok just changing the naming. Removed the '5's from examples too. No need there. Left the .pro file binary as it was as that side now mostly serves the Qt5 builds where we wouldn't benefit much from changing the binary name. Change-Id: Ie4a843c944caa73b080e3610baee4842500f029b Reviewed-by: Pekka Vuorela <pvuorela@iki.fi> Reviewed-by: Damien Caliste <dcaliste@free.fr> Reviewed-by: <matti.viljanen@kapsi.fi>
* Simply notify on authentication errorDamien Caliste2025-09-172-12/+46
| | | | | | | | | | | | | | | | Let the credential implementations decide what to do on authentication error: either invalidate or retry. Adjust the API accordingly. Apply this change when caching credential data in the SingleSignOn plug-in: Don't make SSO calls on each service connection, use cached values instead. Only reset the cached values when the authentication fails with wrong credentials. Change-Id: I14fbe416567d552e7729ad8579fd9a763a3f6749 Reviewed-by: Pekka Vuorela <pvuorela@iki.fi>
* Add a timeout to credential fetching with SSODamien Caliste2025-08-042-0/+35
| | | | | | | | | | | | | | | In case SSO is too long to respond, this timeout avoids to stay indefinetely in the fetching state. It also allows to re-initialize the session process. Without it, it's not possible to restart credential fetching, getting errors when calling process() like: SSO error 305: AuthSession(password) is busy Change-Id: Ia2bbffbdb1510780a6db33a2b55450d69c9fc882 Reviewed-by: Pekka Vuorela <pvuorela@iki.fi>
* Add more debug messages for POP serviceDamien Caliste2025-07-041-0/+2
| | | | | | | | | | Also prefix the send and receive messages with the account number. It helps when several accounts are reporting at the same time to follow the actions of each account. Change-Id: Ie48bea49219cf451a62a2780f2ba122afb67f5d4 Reviewed-by: Pekka Vuorela <pvuorela@iki.fi>
* Avoid locking credentials in fetching statusDamien Caliste2025-07-031-2/+4
| | | | | | | | | | | | If m_session->process() is immediately failing, without entering the event loop, the error handler is called immediately, setting the status on error. But the status was forced to fetching after the process() call, potentially overriding the error status. Change-Id: I03f7aec6da05a04d74074c7e0a290a947428c759 Reviewed-by: Pekka Vuorela <pvuorela@iki.fi>
* Rewrite logging with QLoggingCategoryDamien Caliste2025-06-132-5/+5
| | | | | | | | | Replace the custom logging mechanism with QLoggingCategory. Also declare the warnings with the proper category. Change-Id: If87d53d27ea0c65abd434af9f99fe49ce634d6dd Reviewed-by: Pekka Vuorela <pvuorela@iki.fi>
* Avoid uninitialized memory reference in SsoManager::init()Pekka Vuorela2025-02-261-1/+1
| | | | | | | Change-Id: Iea29363085238bec0091ccfd07f063e84d7e3897 Reviewed-by: <matti.viljanen@kapsi.fi> Reviewed-by: Pekka Vuorela <pvuorela@iki.fi> Reviewed-by: Damien Caliste <dcaliste@free.fr>
* Add a credential plugin based on SSODamien Caliste2025-01-155-0/+475
Change-Id: I18816772a2ce5a925cd35e73c7140dc1482d9bb5 Reviewed-by: Pekka Vuorela <pvuorela@iki.fi>