<commit_before># OmniAuth aMember Pro Strategy

This gem provides a dead simple way to authenticate to aMember Pro using OmniAuth.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'omniauth-amember_pro'
```

## Usage

First, you will need an aMember Pro or two. Once you do that, you can use it like so:

```ruby
use OmniAuth::Builder do
  provider :amember_pro
end
```

## Auth Hash Schema

The following information is provided back to you for this provider:

```ruby
{
  uid: '12345',
  info: {
    nickname: 'login', # may be email
    email: '<EMAIL>'
  },
  credentials: {
    token: 'the<PASSWORD>' # can be used to auth to the API
  },
  extra: { raw_info: raw_api_response }
}
```
<commit_msg>Correct information in the README<commit_after># OmniAuth aMember Pro Strategy

This gem provides a dead simple way to authenticate to aMember Pro using OmniAuth.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'omniauth-amember_pro'
```

## Usage

First, you will need an aMember Pro or two. Once you do that, you can use it like so:

```ruby
use OmniAuth::Builder do
  provider :amember_pro, :auth_url => "https://www.example.org/amember/", :api_key => "xxxxxxxxxxxx"
end                      
```

## Auth Hash Schema

The following information is provided back to you for this provider:

```ruby
{
  uid: '12345',
  info: {
    name: '<NAME>',
    email: '<EMAIL>',
    nickname: 'login'
    first_name: 'Joe',
    last_name: 'Bloggs',
    location: 'Waikato'
  },
  extra: { raw_info: raw_api_response }
}
```

{'fraction_non_alphanumeric': 0.11259541984732824, 'fraction_numerical': 0.006361323155216285, 'mean_word_length': 3.640117994100295, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '3033626', 'n_tokens_mistral': 550, 'n_tokens_neox': 507, 'n_words': 194}