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

Conversation

vexofp
Copy link
Contributor

@vexofp vexofp commented Feb 25, 2019

Implementation for #71 . It seems to work well with my Yubikey 5 over NFC.

Integrating the OpenKeychain API's model (lots of PendingIntents) with the existing code (mostly modal dialog boxes) was a bit interesting. The result is not quite as elegant as I would like, but manages to avoid any intrusive refactoring of the existing authentication methods.

@razic
Copy link

razic commented Feb 27, 2019

@vexofp very nice

Copy link
Member

@msfjarvis msfjarvis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The codestyle here is horrible and inconsistent. Once you apply all my suggestions we can move to reviewing the actual code. Consider reading the Google Java Style Guide for future reference.

Copy link
Member

@msfjarvis msfjarvis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The codestyle here is horrible and inconsistent. Once you apply all my suggestions we can move to reviewing the actual code. Consider reading the Google Java Style Guide for future reference.

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
@msfjarvis msfjarvis self-requested a review February 28, 2019 19:55
@msfjarvis msfjarvis dismissed their stale review February 28, 2019 19:56

Formatting issues are fixed

Copy link
Member

@msfjarvis msfjarvis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks mostly correct to me, but I don't have a way of physically testing this myself.

Does this need unit tests? I'm not very familiar with the test setup so I can't really tell, @zeapo or @zidhuss would be able to fill in on this.

@zeapo
Copy link
Contributor

zeapo commented Mar 2, 2019

@MSF-Jarvis we have only few tests ;(

I can start looking into this. For the moment, this needs manual testing

@zeapo
Copy link
Contributor

zeapo commented Mar 2, 2019

Tested manually. It works fine. Openkeychain is surprisingly simple to use for these kind of use cases :)

@msfjarvis
Copy link
Member

Tested manually. It works fine. Openkeychain is surprisingly simple to use for these kind of use cases :)

Sweet, I'll rebase and merge this.

@zeapo
Copy link
Contributor

zeapo commented Mar 2, 2019

@vexofp I get asked to select the key on every call to jgit. Is it possible to make that selection when the user opt for OpenKeychain authentication?

Also, can you add an item in the FAQ on how to create an Authentication subkey in OpenKeychain?

@razic
Copy link

razic commented Mar 2, 2019

I tested this feature manually as well. It works great. Thank you very much @vexofp. To me personally, this was the feature I was missing the absolute most.

@zeapo's suggestion with regard to saving the preferred key such that you are not prompted on every git operation would definitely be a good improvement to have.

Thanks again! Looking forward to seeing this merged.

@bkchr
Copy link
Contributor

bkchr commented Mar 17, 2019

Works for me as well :) Would be nice to have this into official releases!

@vexofp
Copy link
Contributor Author

vexofp commented Apr 2, 2019

I believe I have addressed the last few review comments and added a section to the wiki on generating authentication keys in OpenKeychain, as requested by @zeapo.

I can try to work on saving the chosen key ID when I have some time, but that might be better as a separate PR.

@bkchr
Copy link
Contributor

bkchr commented Apr 2, 2019

Nice :) Hopefully this gets merged then :)

@zeapo
Copy link
Contributor

zeapo commented Apr 2, 2019 via email

@therealpxc
Copy link

What an exciting feature!

@zeapo
Copy link
Contributor

zeapo commented Apr 5, 2019

thanks @vexofp :)

@zeapo zeapo merged commit f272e4d into android-password-store:master Apr 5, 2019
@bricewge bricewge mentioned this pull request May 22, 2019
@zidhuss zidhuss mentioned this pull request May 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants