<commit_before># Auth0 - Unblock Users

[![Auth0 Extensions](http://cdn.auth0.com/extensions/assets/badge.svg)](https://sandbox.it.auth0.com/api/run/auth0-extensions/extensions-badge?webtask_no_cache=1)

This extension will search the logs for the blocked users in your Auth0 tenant and unblock them after the configurable delay passes. 

## Best Practices

Keep <b>`UNBLOCK_DELAY`</b> reasonably long and monitor the blocked/unblocked users from logs. One way to do this is by exporting the Auth0 Logs to a third party Logging Service with one of [Auth0's Log extensions](https://auth0.com/docs/extensions#export-auth0-logs-to-an-external-service). 

In the 3rd party Logging Service, create alarms for frequent blocks for the same user. You can permanently block a user from Auth0 dashboard in such cases if required.

## Installation

* Fork this repository to your GitHub account.
* In the management dashboard [extensions](https://manage.auth0.com/#/extensions) section, enter your project's Github link in the opened window when you click <b>`+ CREATE EXTENSION`</b> button. 


## Configurable Options

 - `UNBLOCK_DELAY`: This allows you to set the period of time in minutes for blocked users to stay in blocked state. 

 - `START_FROM`: This allows you to set the log id for the extension to start. If unspecified extension cron job starts from the first log available and starts to unblock every user available in the logs. Note that if you have huge amount of logs when you install this extension and not set this option, it may take a few days for the extension to get to the edge of the logs. Until the extension runs in the edge of recent logs, it may not unblock recently blocked users accourding to your delay option. If you want extension to start unblocking recent blocked users immediately you may want to enter a log id of a recent log. Log id for a log can be extracted from the url. ![Alt text](images/log_url.jpg?raw=true "Log Id Image")

## Usage

Install the extension, and inspect unblocked users in the logs!


## How it works
<commit_msg>Update read me for the image link.<commit_after># Auth0 - Unblock Users

[![Auth0 Extensions](http://cdn.auth0.com/extensions/assets/badge.svg)](https://sandbox.it.auth0.com/api/run/auth0-extensions/extensions-badge?webtask_no_cache=1)

This extension will search the logs for the blocked users in your Auth0 tenant and unblock them after the configurable delay passes. 

## Best Practices

Keep <b>`UNBLOCK_DELAY`</b> reasonably long and monitor the blocked/unblocked users from logs. One way to do this is by exporting the Auth0 Logs to a third party Logging Service with one of [Auth0's Log extensions](https://auth0.com/docs/extensions#export-auth0-logs-to-an-external-service). 

In the 3rd party Logging Service, create alarms for frequent blocks for the same user. You can permanently block a user from Auth0 dashboard in such cases if required.

## Installation

* Fork this repository to your GitHub account.
* In the management dashboard [extensions](https://manage.auth0.com/#/extensions) section, enter your project's Github link in the opened window when you click <b>`+ CREATE EXTENSION`</b> button. 


## Configurable Options

 - `UNBLOCK_DELAY`: This allows you to set the period of time in minutes for blocked users to stay in blocked state. 

 - `START_FROM`: This allows you to set the log id for the extension to start. If unspecified extension cron job starts from the first log available and starts to unblock every user available in the logs. Note that if you have huge amount of logs when you install this extension and not set this option, it may take a few days for the extension to get to the edge of the logs. Until the extension runs in the edge of recent logs, it may not unblock recently blocked users accourding to your delay option. If you want extension to start unblocking recent blocked users immediately you may want to enter a log id of a recent log. Log id for a log can be extracted from the url. ![Alt text](images/log_url.png?raw=true "Log Id Image")

## Usage

Install the extension, and inspect unblocked users in the logs!


## How it works

{'fraction_non_alphanumeric': 0.06528547337990846, 'fraction_numerical': 0.006745362563237774, 'mean_word_length': 4.40625, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 6, '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': '3762892', 'n_tokens_mistral': 1133, 'n_tokens_neox': 1074, 'n_words': 588}