<commit_before>Personal IDP
============

Whoa. Your personal, private [Mozilla Persona IDP](https://developer.mozilla.org/en-US/Persona/Identity_Provider_Overview)

I know. It's pretty {profanity} awesome.

Screenshot: ![YAY](https://raw.github.com/shuhaowu/persona-idp/master/screenshot.png) 

Wat
===

This is a persona IDP you can pretty easily deploy on your server. It provides two factor authentication compatible with GAuthenticator.

The plan is eventually to have an app on the phone so it requests for access or something like that. Also logs are planned.

Setup
=====

The checked out source code is not really ready to be deployed/developed on. Right now everything is really chaotic and what not so the instruction maybe outdated.

This repo provides scripts to generate the keys and support documents. Those will be useful.

 1. Clone the repo
 2. `vagrant up`
 3. `vagrant ssh`
 4. `cd /vagrant/certs`
 5. `openssl genrsa -out private-key.pem 2048`
 6. `openssl rsa -in private-key.pem -pubout > public-key.pem`
 7. `/vagrant/scripts/gen_support_doc`<commit_msg>Fixed screenshot<commit_after>Personal IDP
============

Whoa. Your personal, private [Mozilla Persona IDP](https://developer.mozilla.org/en-US/Persona/Identity_Provider_Overview)

I know. It's pretty {profanity} awesome.

Screenshot: ![YAY](https://raw.github.com/shuhaowu/personal-idp/master/screenshot.png) 

Wat
===

This is a persona IDP you can pretty easily deploy on your server. It provides two factor authentication compatible with GAuthenticator.

The plan is eventually to have an app on the phone so it requests for access or something like that. Also logs are planned.

Setup
=====

The checked out source code is not really ready to be deployed/developed on. Right now everything is really chaotic and what not so the instruction maybe outdated.

This repo provides scripts to generate the keys and support documents. Those will be useful.

 1. Clone the repo
 2. `vagrant up`
 3. `vagrant ssh`
 4. `cd /vagrant/certs`
 5. `openssl genrsa -out private-key.pem 2048`
 6. `openssl rsa -in private-key.pem -pubout > public-key.pem`
 7. `/vagrant/scripts/gen_support_doc`
{'fraction_non_alphanumeric': 0.09537037037037037, 'fraction_numerical': 0.010185185185185186, 'mean_word_length': 4.219806763285024, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6213588', 'n_tokens_mistral': 704, 'n_tokens_neox': 646, 'n_words': 268}