<commit_before>#wakanda-googleOAuth2-client#

This JavaScript module provides OAuth2 client authentication using Google's API. It was written to be used with [wakandaDB](http://wakandaDB.org/) and was created for [GlassWakanda](https://github.com/lyle/GlassWakanda).

Google OAuth2
-------------

* [Google OAuth2 Docs](https://developers.google.com/accounts/docs/OAuth2)
* You will need to [Register your Application with Google](https://cloud.google.com/console) - this will give you the data you need to use this module.


To Install for use with Wakanda
-------------------------------

Put the GoogleOAuth2.js file into your Wakanda Project "Modules" folder - you can just clone this repo as a sumb module. Or just download the GoogleOAuth2.js file.

If you clone the project as a sumbmodule, from your git project root:

    git submodule add https://github.com/lyle/wakanda-googleOAuth2-client.git path/to/Modules/GoogleOAuth2

Then get the dependency "wakanda-querystring" into the Modules folder.
Simply go and grab the querystring.js file from https://github.com/anvivia/wakanda-querystring
And place that file in your Modules folder so that Wakanda finds it at init.

To Use in Wakanda
-----------------
Take a look at GoogleAuthExample.js file.
You will need to change these things:

1) Put GoogleAuthExample.js in YourProject/Scripts
2) Put your Google Application data into the GoogleAuthExample.js file
3) Add an http request handler in your project's active [Bootstrap](http://doc.wakanda.org/Wakanda0.DevBranch/help/Title/en/page3283.html#1014177) file

    addHttpRequestHandler("/login", "Scripts/GoogleAuthExample.js", "login");

4) Run wakandaDB
<commit_msg>Reformat use list<commit_after>#wakanda-googleOAuth2-client#

This JavaScript module provides OAuth2 client authentication using Google's API. It was written to be used with [wakandaDB](http://wakandaDB.org/) and was created for [GlassWakanda](https://github.com/lyle/GlassWakanda).

Google OAuth2
-------------

* [Google OAuth2 Docs](https://developers.google.com/accounts/docs/OAuth2)
* You will need to [Register your Application with Google](https://cloud.google.com/console) - this will give you the data you need to use this module.


To Install for use with Wakanda
-------------------------------

Put the GoogleOAuth2.js file into your Wakanda Project "Modules" folder - you can just clone this repo as a sumb module. Or just download the GoogleOAuth2.js file.

If you clone the project as a sumbmodule, from your git project root:

    git submodule add https://github.com/lyle/wakanda-googleOAuth2-client.git path/to/Modules/GoogleOAuth2

Then get the dependency "wakanda-querystring" into the Modules folder.
Simply go and grab the querystring.js file from https://github.com/anvivia/wakanda-querystring
And place that file in your Modules folder so that Wakanda finds it at init.

To Use in Wakanda
-----------------
Take a look at GoogleAuthExample.js file.
You will need to change these things:

- Put GoogleAuthExample.js in YourProject/Scripts
- Put your Google Application data into the GoogleAuthExample.js file
- Add an http request handler in your project's active [Bootstrap](http://doc.wakanda.org/Wakanda0.DevBranch/help/Title/en/page3283.html#1014177) file

    addHttpRequestHandler("/login", "Scripts/GoogleAuthExample.js", "login");

4) Run wakandaDB

{'fraction_non_alphanumeric': 0.11431973801726704, 'fraction_numerical': 0.013992259601071748, 'mean_word_length': 3.84149855907781, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3885664', 'n_tokens_mistral': 1005, 'n_tokens_neox': 982, 'n_words': 365}