StandardId Apple Provider
This gem extracts the Apple OAuth provider from the core standard_id engine so installations can opt into Apple login independently of the base gem.
Installation
Add the gem next to standard_id:
# Gemfile
gem "standard_id"
gem "standard_id-apple"
Then install:
bundle install
The gem automatically registers itself with StandardId when it is required.
Configuration
Configure Apple credentials via the StandardId configuration block:
StandardId.configure do |config|
config.apple_client_id = ENV["APPLE_CLIENT_ID"]
config.apple_mobile_client_id = ENV["APPLE_MOBILE_CLIENT_ID"] # optional
config.apple_team_id = ENV["APPLE_TEAM_ID"]
config.apple_key_id = ENV["APPLE_KEY_ID"]
config.apple_private_key = ENV["APPLE_PRIVATE_KEY_PEM"]
end
With those values in place, StandardId routes such as /auth/callback/apple continue to function using this provider gem.
Testing
Run the spec suite:
bundle exec rspec
Development
bin/setupbundle exec rspec
To release a new version:
- Update the version in
lib/standard_id/apple/version.rb. - Run
bundle exec rake releaseto tag, push, and publish to RubyGems.
License
MIT — see LICENSE.txt.