Skip to content
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

Add token sharing support, including Jelling support #169

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

npmccallum
Copy link
Contributor

Here are the patches:

  1. Cleanup
  2. Cleanup
  3. Token sharing framework (TSF)
  4. Move clipboard copy to TSF
  5. Add Jelling support to TSF

@npmccallum
Copy link
Contributor Author

@joekir Can you review this?

@joekir
Copy link
Contributor

joekir commented Dec 13, 2017

@npmccallum that CI failure is from the gradle config updates that we still need to do.

I'll try review it this week at some point if that's ok?

Now you can choose to "share" a token to another source. This commit contains
only the sharing framework. Specific sharing targets will follow in future
commits.
Now, copying a code to the clipboard is manual (though still trivial). This
increases security and has equal discoverability.

Fixes freeotp#58
Fixes freeotp#63
Fixes freeotp#49
If you grant permissions, FreeOTP can now scan for Jelling targets. If one is
found, you can share your token with it. On the Jelling side, the token will be
typed as if you had manually typed it.
@npmccallum
Copy link
Contributor Author

@joekir I fixed the build in master and rebased this patch. This week would be great.


@Override
public void onConnectionStateChange(BluetoothGatt gatt, int status, int state) {
switch (state) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should there be a default case, e.g. to log an unknown state?

@joekir
Copy link
Contributor

joekir commented Dec 18, 2017

@npmccallum my review doesn't seem to have changed the state. Most likely as I don't have write access. Over to you to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants