<commit_before># Omniauth FamilySearchIdentity

OmniAuth strategy for FamilySearch Identity v2 API (OAuth 1.0a)

## Installation

Add this line to your application's Gemfile:

    gem 'omniauth-familysearch-identity'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install omniauth-familysearch-identity

## Usage

    use OmniAuth::Builder do
      provider :familysearch_identity, ENV['FAMILYSEARCH_DEVELOPER_KEY'], ''
    end

## Auth Hash

Here's an example Auth Hash available in `request.env['omniauth.auth']`:
```ruby
{
  "provider" => "familysearch_identity",
  "uid" => "jdoe",
  "info" => {
    "name" => "<NAME>",
    "email" => "<EMAIL>",
    "nickname" => "jdoe",
    "first_name" => "John",
    "last_name" => "Doe"
  },
  "credentials" => {
    "token" => "<PASSWORD>",
    "secret" => "6f532ad1bb"
  },
  "extra" => {
    "access_token" => "<PASSWORD>",
    "raw_info" => {
      "users" => [
	"id" => "MMMM-QY4Y",
	"username" => "jdoe",
	"emails" => [
	  {
	    "type" => "Primary",
	    "value" => "<EMAIL>"
	  },
	  {
	    "type" => "Alternate",
	    "value" => nil
	  }
	],
	"names" => [
	  {
	    "type" => "Display",
	    "value" => "<NAME>"
	  },
	  {
	    "type" => "Family",
	    "value" => "Doe"
	  },
	  {
	    "type" => "Given",
	    "value" => "John"
	  }
	],
	"preferences" => [
	  {
	    "name" => "language",
	    "value" => "en"
	  }
	]
      ]
    }
  }
}
```

## FamilySearch Identity v2 Docs

https://familysearch.org/developers/docs/identity-v2

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request<commit_msg>Minor tweaks to README formatting<commit_after># Omniauth FamilySearchIdentity

OmniAuth strategy for FamilySearch Identity v2 API (OAuth 1.0a)

## Installation

Add this line to your application's Gemfile:

    gem 'omniauth-familysearch-identity'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install omniauth-familysearch-identity

## Usage

```ruby
use OmniAuth::Builder do
  provider :familysearch_identity, ENV['FAMILYSEARCH_DEVELOPER_KEY'], ''
end
```

## Auth Hash

Here's an example Auth Hash available in `request.env['omniauth.auth']`:

```ruby
{
  "provider" => "familysearch_identity",
  "uid" => "jdoe",
  "info" => {
    "name" => "<NAME>",
    "email" => "<EMAIL>",
    "nickname" => "jdoe",
    "first_name" => "John",
    "last_name" => "Doe"
  },
  "credentials" => {
    "token" => "<PASSWORD>",
    "secret" => "6f532ad1bb"
  },
  "extra" => {
    "access_token" => "<PASSWORD>",
    "raw_info" => {
      "users" => [
        "id" => "MMMM-QY4Y",
        "username" => "jdoe",
        "emails" => [
          {
            "type" => "Primary",
            "value" => "<EMAIL>"
          },
          {
            "type" => "Alternate",
            "value" => nil
          }
        ],
        "names" => [
          {
            "type" => "Display",
            "value" => "<NAME>"
          },
          {
            "type" => "Family",
            "value" => "Doe"
          },
          {
            "type" => "Given",
            "value" => "John"
          }
        ],
        "preferences" => [
          {
            "name" => "language",
            "value" => "en"
          }
        ]
      ]
    }
  }
}
```

## FamilySearch Identity v2 Docs

https://familysearch.org/developers/docs/identity-v2

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
{'fraction_non_alphanumeric': 0.17654879021536826, 'fraction_numerical': 0.00850837543206594, 'mean_word_length': 2.2942206654991244, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 79, 'https://': 2, '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': '7402841', 'n_tokens_mistral': 1368, 'n_tokens_neox': 1294, 'n_words': 306}