Giter Club home page Giter Club logo

s3mobilepass's Introduction

S3mobilePASS

Wrapper of MobilePASSER that saves config to AWS S3. MobilePASSER is a reimplementation of the MobilePASS client in Python.

A fork from datr, with added backend mode in S3 bucket. This way you can just specify S3 bucket and have configuration synchronized on all your devices.

Also added support for Python 3 (3.6+).

Installation

python setup.py install

Usage

usage: mobilepasser [-h] [-k ACTIVATION_KEY] [-x INDEX] [-p POLICY]
                    [-l OTP_LENGTH] [-a]

optional arguments:
  -h, --help            show this help message and exit
  -k ACTIVATION_KEY, --activation-key ACTIVATION_KEY
                        The string the MobilePass client generated.
  -x INDEX, --index INDEX
                        The index of the token to generate.
  -p POLICY, --policy POLICY
                        Policy for the token.
  -l OTP_LENGTH, --otp-length OTP_LENGTH
                        Length of the returned OTP.
  -a, --auto-update-index
                        Automatically bump the index by 1 and save to config
                        file.

Configuration

The configuration file is read form ~/.mobilepasser.cfg. An example config file can be found in the examples folder.

[MobilePASS]
activation_key = *key*
policy =
index = 1
otp_length = 6
auto_update_index = True
s3_bucket_name = *bucket name in your AWS account*
load_from_s3 = True
awscli_profile = default

If you use S3 bucket as your backup, you need to have your AWS-cli credentials set up in ~/.aws/. This can be set up by installing awscli:

python3 -m pip install awscli

Then configure the access:

aws configure

A S3 bucket spicified in the config needs to be already created in your AWS account.

s3mobilepass's People

Contributors

binki avatar datr avatar j-sokol avatar keshto avatar nbartos avatar widewing avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

s3mobilepass's Issues

Fix issue when using default config

Traceback (most recent call last):
  File "/usr/local/bin/mobilepasser", line 11, in <module>
    load_entry_point('MobilePASSER==1.0', 'console_scripts', 'mobilepasser')()
  File "/usr/local/lib/python3.7/site-packages/MobilePASSER-1.0-py3.7.egg/mobilepasser/mobilepasser.py", line 81, in main
UnboundLocalError: local variable 'load_from_s3' referenced before assignment

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.