A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nhosoya/omniauth-apple below:

nhosoya/omniauth-apple: OmniAuth strategy for Sign In with Apple

OmniAuth strategy for Sign In with Apple.

Add this line to your application's Gemfile:

And then execute:

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
Configuring "Sign In with Apple"

other Sign In with Apple guides:

Look out for the values you need for your config
  1. your domain and subdomains, something like: myapp.com, www.myapp.com
  2. your redirect uri, something like: https://myapp.com/users/auth/apple/callback (check rails routes to be sure)
  3. omniauth's "client id" will be Apple's "bundle id", something like: com.myapp
  4. you will get the "team id" value from Apple when you create your App Id, something like: H000000B
  5. Apple will give you a .p8 file, which you'll use to GENERATE your :pem value
  1. Log into your Apple Developer Account (if you don't have one, you can create one here)

  2. Get an App Id with the "Sign In with Apple" capability

  3. Get a Services Id (which we will use as our client id)

  4. Get a Secret Key

Mapping Apple Values to OmniAuth Values

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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4