Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Add support for GNOME Keyring#49

Merged
olivierdagenais merged 15 commits into
masterfrom
adopt_storages_library
Jul 13, 2016
Merged

Add support for GNOME Keyring#49
olivierdagenais merged 15 commits into
masterfrom
adopt_storages_library

Conversation

@olivierdagenais
Copy link
Copy Markdown
Contributor

Description

The bulk of the work to support the GNOME Keyring on Linux was to adopt the auth-secure-storage module of the Visual Studio Team Services Authentication Library for Java, removing a lot of the code that was effectively moved to the library's modules.

Manual testing

  1. On a Fedora 22 machine, configure Git to use the output of this branch's build.
  2. Find a Git remote hosted in a Visual Studio Team Services account and perform a git fetch from it.
    1. I already had a token for the VSTS account in ~/git-credential-manager/insecureStore.xml; it was imported in the GNOME Keyring and then the token was used to successfully fetch.
  3. I removed a character from the token using "Seahorse" (the "Passwords and Keys" GUI to GNOME Keyring) to make it invalid and attempted another git fetch.
    1. The GCM4ML noticed the token was invalid and initiated authentication using Device Flow (the JVM is the stock openjdk version "1.8.0_91", so JavaFX was not available), which I completed in a web browser. The fetch was again successful.
  4. I also ran a quick smoke test on Mac OS X to confirm

Mission accomplished!

Oli Dagenais added 15 commits July 6, 2016 08:46
This is in preparation for consuming a library that depends on slf4j;
calls through slf4j should end up through the Trace, as demonstrated
by the TraceLoggerTest.
1 - auth-secure-storage depends on slf4j-api:1.7.19,
    so the latter was removed.
2 - auth-secure-storage depends on auth-common,
    which imported a lot of code from this project
    so it can now be deleted from here.
3 - auth-secure-storage depends on third-party OSS,
    so ThirdPartyNotices.txt and EULA.txt were added.
    Some related content was added to the ReadMe.md,
    plus some filtering to remove the MIT License from
    the binary release artifacts.
This will cause the GCM4ML to use auth-secure-storage's components,
with a migration from insecureStore.xml if that file is found.
The InsecureStore should now only be used for migrating.
1 - GNOME Keyring now supported on GNU/Linux.
2 - Automatic import from insecureStore.xml on first run.
@davidstaheli
Copy link
Copy Markdown

Looks good, and thanks for the excellent doc updates.

@olivierdagenais olivierdagenais merged commit eb96ff6 into master Jul 13, 2016
@olivierdagenais olivierdagenais deleted the adopt_storages_library branch July 14, 2016 17:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants