OmniAuth::Apple
OmniAuth strategy for Sign In with Apple.
Installation
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
Usage
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
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/nhosoya/omniauth-apple.
License
The gem is available as open source under the terms of the MIT License.