GithubHelp home page GithubHelp logo

sqreen / twofa Goto Github PK

View Code? Open in Web Editor NEW
147.0 8.0 10.0 1.35 MB

A TouchID-aware 2-factor authenticator for macOS

License: MIT License

Swift 97.70% Shell 2.30%
security two-factor-authentication 2fa 2fa-client swift macos macosx touchid touchid-authentication totp authenticator

twofa's Issues

Cannot install Twofa using brew

I get the following error on my Macbook M1 when I try brew install.

curl: (22) The requested URL returned error: 403 Forbidden
Error: Failed to download resource "twofa"
Download failed: https://dl.bintray.com/sqreen/bottles-sqreen/twofa-0.0.1.tar.gz

Not able to run binary -- zsh: twofa Killed.

I was under the impression that the brew-provided binaries can be used without the need to get an apple developer account. But executing the binary unter macOS 10.15.5 does not work.


~ % brew install twofa
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
agedu

==> Installing twofa from sqreen/speakeasy
==> Downloading https://dl.bintray.com/sqreen/bottles-sqreen/twofa-0.0.1.mojave.bottle.tar.gz
Already downloaded: /Users/chris/Library/Caches/Homebrew/downloads/0d4679271cfb56188bad88a92bc4270ef0599ade9ff73a9da244f820340e4730--twofa-0.0.1.mojave.bottle.tar.gz
==> Pouring twofa-0.0.1.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/twofa/0.0.1: 4 files, 10.6MB

~ % twofa
zsh: killed twofa

Also, the filename mentions mojave, but 10.15.5 is catalina (but according to the README "Built and tested on macOS Catalina 10.15.5.")

unknown file attribute: v

Hi,
is it possible that when the name of the app contains parentheses, it tries to treat it as an argument? It gives me the error "unknown file attribute: v".

Thank you

Tom

Mismatch in copyright statements

In the LICENSE file, you're using an MIT license, which states:

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: [...]

However, in your Info.plist, the copyright reads:

Copyright © 2019 Sqreen Inc. All rights reserved.

These two statements are in conflict. Either the rights are reserved or they are granted without restriction. If the software is truly licensed under the MIT license, the copyright in your Info.plist should read something like:

Copyright © 2019 Sqreen Inc. Licensed under MIT.

Safari integration?

As much as I live in the CLI, it is a little annoying to switch out of the browser if I'm using Twofa to help buggy websites that have short-lived sessions. Is anyone currently working on a browser implementation?

--stdout should print a single token and exit

Hi, first of all, this tool is fantastic and has made my life a lot easier - so thanks for that!

I think the --stdout flag would be more useful if its behavior was changed to only output a single auth token, and then exit. No bells and whistles of mutating your pasteboard. This would make automating with other tools more useful, and is also more standard since it's what the --stdout flag usually does in a program.

An example of where this is useful is with CLI tools that use MFA tokens. If you have MFA and you need to auth you can use command substitution to do this, eliminating the step of needing to paste the code.

$ program login --mfa-token $(twofa get code)

Catalina 10.15.4 has broken twofa

My MBP upgraded itself last night and now twofa won't start. It just dies immediately

$ twofa
[1]    15344 killed     twofa

Below is the output from Console for twofa suggesting that this is a signature issue

default	16:15:40.116776+0100	kernel	mac_vnode_check_signature: /usr/local/Cellar/twofa/0.0.1/bin/TwoFa: code signature validation failed fatally: When validating /usr/local/Cellar/twofa/0.0.1/bin/TwoFa:
  The signature could not be validated because AMFI could not load its entitlements for validation: entitlements cannot be parsed
default	16:15:40.116828+0100	kernel	proc 15082: load code signature error 4 for file "TwoFa"
default	16:15:40.117675+0100	kernel	Security policy would not allow process: 15082, /usr/local/Cellar/twofa/0.0.1/bin/TwoFa
default	16:15:40.161308+0100	ReportCrash	Parsing corpse data for process TwoFa [pid 15082]
default	16:15:40.882122+0100	ReportCrash	Saved crash report for TwoFa[15082] version ??? to TwoFa_2020-04-02-161540_user.crash
default	16:15:40.931941+0100	ReportCrash	Removing excessive log: TwoFa_2020-04-02-104337_user.crash

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.