<commit_before># Azure AD AWS Cli Authentication

Generates STS Tokens based on SAML Assertion from Azure AD (with MFA enabled also)


# System Requirements

* Python2.7 or Python3.3+
* Selenium webdriver like [PhantomJS](http://phantomjs.org) or [Chrome driver](https://sites.google.com/a/chromium.org/chromedriver/)

## How to install PhantomJS on Linux Debian

Install prerequisites

    $ sudo apt-get install -y libssl-dev libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev
    
Download and unpack

    $ wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
    $ tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2 
    $ mv phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/


# Installation

Simply run:

    $ pip install git+https://github.com/piontas/python-aada.git


# Usage

To see help message:

    $ aada --help

To configure default profile

    $ aada configure

To configure named profile

    $ aada configure --profile <profile_name>

To login to Azure AD and assume role with SAML

    $ aada login
    
To login with named profile

    $ aada login --profile <profile_name>
    

# TODO

* Documentation
* Tests
* Installation steps
* Logging, debugging
<commit_msg>missing sudo in Readme file<commit_after># Azure AD AWS Cli Authentication

Generates STS Tokens based on SAML Assertion from Azure AD (with MFA enabled also)


# System Requirements

* Python2.7 or Python3.3+
* Selenium webdriver like [PhantomJS](http://phantomjs.org) or [Chrome driver](https://sites.google.com/a/chromium.org/chromedriver/)

## How to install PhantomJS on Linux Debian

Install prerequisites

    $ sudo apt-get install -y libssl-dev libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev
    
Download and unpack

    $ wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
    $ tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2 
    $ sudo mv phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/


# Installation

Simply run:

    $ pip install git+https://github.com/piontas/python-aada.git


# Usage

To see help message:

    $ aada --help

To configure default profile

    $ aada configure

To configure named profile

    $ aada configure --profile <profile_name>

To login to Azure AD and assume role with SAML

    $ aada login
    
To login with named profile

    $ aada login --profile <profile_name>
    

# TODO

* Documentation
* Tests
* Installation steps
* Logging, debugging

{'fraction_non_alphanumeric': 0.09021956087824351, 'fraction_numerical': 0.02475049900199601, 'mean_word_length': 3.3964912280701753, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '432203', 'n_tokens_mistral': 923, 'n_tokens_neox': 830, 'n_words': 237}