-
Notifications
You must be signed in to change notification settings - Fork 75
QGIS Auth db import #4249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
gabriel-bolbotina
wants to merge
23
commits into
master
Choose a base branch
from
feature/qgis-auth-db-sync
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
QGIS Auth db import #4249
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
5bc1e59
Added initial draft for the auth db sync
gabriel-bolbotina 50354d6
Modified authsync
gabriel-bolbotina c251edd
Formatted code
gabriel-bolbotina 0caf555
Simplified class
gabriel-bolbotina 5d5f9ad
Formatted code
gabriel-bolbotina 9d1cc77
Qca-workaround
gabriel-bolbotina 651b714
Modified auth db sync
gabriel-bolbotina 34e5521
Formatted cmake file
gabriel-bolbotina e0ca6f2
Implemented code review findings
gabriel-bolbotina 6c424a1
Removed authSync class + header
gabriel-bolbotina f05ee2f
Modified mock cfg file, corrected test auth import
gabriel-bolbotina bdf48b4
Revert "Modified mock cfg file, corrected test auth import"
gabriel-bolbotina 7eb22b2
Implemented code review findings
gabriel-bolbotina 05ebb9b
Implemented code findings
gabriel-bolbotina 83470ec
Updated unit test
gabriel-bolbotina 962ad45
Modified cmake for windows qca
gabriel-bolbotina 1fdd8f3
Used windows dll
gabriel-bolbotina e1a2031
Fix QCA for windows build
Withalion 5608f8f
Excluded opensslPlugin from the windows build
gabriel-bolbotina fe5119e
Modified active project
gabriel-bolbotina f0b9dec
Updated comments
gabriel-bolbotina f848d4a
Implemented code findings
gabriel-bolbotina d71664f
Fixed authentication database logic
gabriel-bolbotina File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -27,6 +27,7 @@ | |
| #include "test/inputtests.h" | ||
| #endif | ||
| #include <qqml.h> | ||
| #include "qgsauthmanager.h" | ||
| #include <qgsmessagelog.h> | ||
| #include "qgsconfig.h" | ||
| #include "qgsproviderregistry.h" | ||
|
|
@@ -543,6 +544,14 @@ int main( int argc, char *argv[] ) | |
| LayerTreeFlatModelPixmapProvider *layerTreeFlatModelPixmapProvider( new LayerTreeFlatModelPixmapProvider ); | ||
| LayerDetailLegendImageProvider *layerDetailLegendImageProvider( new LayerDetailLegendImageProvider ); | ||
|
|
||
| QgsAuthManager *authManager = QgsApplication::authManager(); | ||
| // remove existing authentication database when opening the app | ||
| authManager->removeAllAuthenticationConfigs(); | ||
| // set up the master password for authentication database retrieval | ||
| authManager->setPasswordHelperEnabled( false ); | ||
| authManager->setMasterPassword( QStringLiteral( "merginMaps" ), true ); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The addition of |
||
|
|
||
|
|
||
| // build position kit, save active provider to QSettings and load previously active provider | ||
| PositionKit pk; | ||
| QObject::connect( &pk, &PositionKit::positionProviderChanged, as, [as]( AbstractPositionProvider * provider ) | ||
|
|
||
This file contains hidden or 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,3 @@ | ||
| #include <QtPlugin> | ||
| // Required for QGIS authentication manager API on static builds (Linux/macOS/iOS/android) | ||
| Q_IMPORT_PLUGIN( opensslPlugin ) |
This file contains hidden or 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 hidden or 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
Binary file not shown.
Binary file not shown.
This file contains hidden or 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,2 @@ | ||
| <!DOCTYPE qgis_authentication> | ||
| <qgis_authentication civ="fce8ce72133e5d85b5af66d3046e5c78411f20bb3ebb47eb851d469350922773" salt="0bd55a8f76c40cdef3bc8897714175fa" hash="dfe957824c402c5853a7a0f1d0feaa58">21ce1cf53ab351eb229b3ae83f7384b76578dd93d76e3515904213a79dddd46b0ed3e05f5f906fa681e7714af0d0d9dd551735a31bae5ea96333cc9ebe2debc003eebf44e42c1ec5cd9c7214d8a7399dedfd2f89819661615013ec79fb3bce642138f593be11c64f4f1374b274e1b5c887f229190521e7d0a340f97f1a27c78d70f1e3ac28d9b605d0ae07a9832c03ea2778c0629cbbc8e932d5b36b941f6d4eabe0b4d734d10ce41464064da7e2ee14204064a1ddfa7ca9427ad3aa4fd0cc467bab98b12235a867ddc6542935db835b</qgis_authentication> |
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.