OmniAuth strategy for Sign In with Apple.
Add this line to your application's Gemfile:
gem 'omniauth-apple', github: 'nhosoya/omniauth-apple', branch: 'master'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-apple
Rails.application.config.middleware.use OmniAuth::Builder do
provider :apple, ENV['CLIENT_ID'], '',
{
scope: 'email name',
team_id: ENV['TEAM_ID'],
key_id: ENV['KEY_ID'],
pem: ENV['PRIVATE_KEY']
}
end
Bug reports and pull requests are welcome on GitHub at https://github.com/nhosoya/omniauth-apple.
The gem is available as open source under the terms of the MIT License.