-
-
Notifications
You must be signed in to change notification settings - Fork 23
Home
nov edited this page May 16, 2020
·
4 revisions
"Sign in with Apple" backend library in ruby.
gem install apple_id
Require
require 'apple_id'When calling ApleID::IdToken#verify! with verify_signature: true,
this gem automatically fetches Apple's JWKS and use it for signature verification.
If you want to cache the JWKS, set AppleID::JWKS.cache,
then this gem caches JWKS until Apple start using new & non-cached JWK.
AppleID::JWKS.cache = Rails.cacheCall AppleID.debug!, then you'll see all HTTP requests after that line in the log.
In Rails, you'll need to set AppleID.logger = Rails.logger.
AppleID.debug!
AppleID.logger = Rails.loggerSee AppleID::Client.