<commit_before>## 3scale Identity provider with Oauth 2.0 authorization code flow with nginx

This tutorial is a sample IDP developed by 3scale to give you a look and feel how an Identity provider connects and exchanges messages between

1. Google Playground - Client Application
2. Identity provider - Developed in node.js and mongoDB as database to store the user credentials
3. Nginx - Authorization and token endpoint 
4. Redis server - To store the access_tokens
5. 3scale - Authorization backend for validating the tokens and generating the client_id and client_secret

##Prerequisites
1. Install node with version v0.10.29 or higher
2. Install MongoDB on localhost or use the [Modulus.io](https://modulus.io/) to create MongoDB setup online. After installation, edit the config/database.js with the mongoDB url
`mongodb://<user>:<pass>@mongo.onmodulus.net:27017/Mikha4ot`, if Modulus.io is used to create DB OR `mongodb://127.0.0.1/mydb`, if localhost is used to create setup

##Steps
1. Clone the repo: `git clone <EMAIL>.com:VinayBhalerao/identityProvider-node.git`
2. Install the packages `npm install`
3. Change the config/database.ejs with the url given in prequisites section
4. Change the nginx server url in views/dailog.ejs to `http://<nginx_server>/callback`. Enter the IP address of the nginx_server. 
5. Start the server: `node server.js`
<commit_msg>added changed apache jena code base and login screen app projetcs .<commit_after>## 3scale Identity provider with Oauth 2.0 authorization code flow with nginx
takes client id and client_secret and generates access_token and then shows apache jena dashboard .
{'fraction_non_alphanumeric': 0.06695331695331695, 'fraction_numerical': 0.022727272727272728, 'mean_word_length': 4.65625, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7291163', 'n_tokens_mistral': 483, 'n_tokens_neox': 451, 'n_words': 218}