Note that this project is a work in progress and is not necessarily ready for production use at this time.
A omnitauth strategy primarily used for validating Apple ID tokens (JWT encoded) generated by Apple authentication servers. As with other Omniauth strategies, it can also redirect to Apple's Sign In page.
Add this line to your application's Gemfile:
gem 'omniauth-apple-id-token'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-apple-id-token
You use OmniAuth::Strategies::AppleIdToken just like you do any other OmniAuth strategy:
use OmniAuth::Strategies::AppleIdToken, aud_claim: 'com.example.app-name'
If this strategy is used primarily for validating a Apple ID token, then the only required fields are aud_claim.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request