-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature][needs-docs] Master Password integration with OS password ma…
…nager This PR adds (optional) synchronization of the master password with the OS password manager (AKA wallet/keychain). A set of new menu items has been added in the options -> authentication -> utilities to manage the new behavior. Notifications are handled by the message bar unless the password r/w operation is triggered from a modal dialog, in this case the notifications will be routed through the recently exposed QgisApp::showSystemNotification that uses the OS tray notifications. This new feature requires libqt5keychain, and was tested with v. 0.5+
- Loading branch information
Showing
31 changed files
with
714 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Find QtKeychain | ||
# ~~~~~~~~~~~~~~~ | ||
# Copyright (c) 2016, Boundless Spatial | ||
# Author: Larry Shaffer <lshaffer (at) boundlessgeo (dot) com> | ||
# | ||
# Redistribution and use is allowed according to the terms of the BSD license. | ||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
# | ||
# CMake module to search for QtKeychain library from: | ||
# https://github.com/frankosterfeld/qtkeychain | ||
# | ||
# If it's found it sets QTKEYCHAIN_FOUND to TRUE | ||
# and following variables are set: | ||
# QTKEYCHAIN_INCLUDE_DIR | ||
# QTKEYCHAIN_LIBRARY | ||
|
||
FIND_PATH(QTKEYCHAIN_INCLUDE_DIR keychain.h | ||
PATHS | ||
${LIB_DIR}/include | ||
"$ENV{LIB_DIR}/include" | ||
$ENV{INCLUDE} | ||
/usr/local/include | ||
/usr/include | ||
PATH_SUFFIXES qt5keychain qtkeychain | ||
) | ||
|
||
FIND_LIBRARY(QTKEYCHAIN_LIBRARY NAMES qt5keychain qtkeychain | ||
PATHS | ||
${LIB_DIR} | ||
"$ENV{LIB_DIR}" | ||
$ENV{LIB} | ||
/usr/local/lib | ||
/usr/lib | ||
) | ||
|
||
|
||
IF (QTKEYCHAIN_INCLUDE_DIR AND QTKEYCHAIN_LIBRARY) | ||
SET(QTKEYCHAIN_FOUND TRUE) | ||
ELSE() | ||
SET(QTKEYCHAIN_FOUND FALSE) | ||
ENDIF (QTKEYCHAIN_INCLUDE_DIR AND QTKEYCHAIN_LIBRARY) | ||
|
||
IF (QTKEYCHAIN_FOUND) | ||
IF (NOT QTKEYCHAIN_FIND_QUIETLY) | ||
MESSAGE(STATUS "Found QtKeychain: ${QTKEYCHAIN_LIBRARY}") | ||
ENDIF (NOT QTKEYCHAIN_FIND_QUIETLY) | ||
ELSE (QTKEYCHAIN_FOUND) | ||
IF (QTKEYCHAIN_FIND_REQUIRED) | ||
MESSAGE(FATAL_ERROR "Could not find QtKeychain") | ||
ENDIF (QTKEYCHAIN_FIND_REQUIRED) | ||
ENDIF (QTKEYCHAIN_FOUND) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.