<commit_before># OmniAuth Slack SignIn

This gem contains Slack SignIn strategy for OmniAuth. It works with minimum required 'identity.basic' scope. And then calls `/api/users.identity` to fetch `team_id`, `user_id`, `user_name`.

## Install

Add this gem to your Gemfile:

```ruby
gem 'omniauth-slacksignin', github: 'ignat/omniauth-slacksignin'
```

## Setup

Add the following code to your Devise initializer:

```ruby
config.omniauth :slacksignin, ENV['SLACK_APP_ID'], ENV['SLACK_APP_SECRET'], scope: 'identity.basic'
```

Add callback routes to your config/routes.rb:

```ruby
devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
```

and then add slacksignin method to omniauth_callbacks_controller.rb:

```ruby<commit_msg>Small formatting changes in readme<commit_after># OmniAuth Slack SignIn

This gem contains Slack SignIn strategy for OmniAuth. It works with minimum required `identity.basic` scope. And calls `/api/users.identity` to fetch `team_id`, `user_id`, `user_name`.

## Install

Add this gem to your Gemfile:

```ruby
gem 'omniauth-slacksignin', github: 'ignat/omniauth-slacksignin'
```

## Setup

Add the following code to your Devise initializer:

```ruby
config.omniauth :slacksignin, ENV['SLACK_APP_ID'], ENV['SLACK_APP_SECRET'], scope: 'identity.basic'
```

Add callback routes to your config/routes.rb:

```ruby
devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
```

and then add slacksignin method to omniauth_callbacks_controller.rb:

```ruby
{'fraction_non_alphanumeric': 0.12160413971539456, 'fraction_numerical': 0.0, 'mean_word_length': 5.845132743362832, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '2384036', 'n_tokens_mistral': 548, 'n_tokens_neox': 514, 'n_words': 154}