LoginSignup
30
16

More than 3 years have passed since last update.

Sign in with Apple 用の Ruby Gem をリリースして Rails でサンプル実装してみました

Last updated at Posted at 2019-06-04

iOS App に Apple ID でログインできたらいいのになぁ〜と思い続けてはや数年、ついにそんな時代がやってきましたね!

ということで、FB Connect 登場時の fb_graph gem リリース以来のスピード感で、Sign in with Apple 用の ruby gem をリリースしてみました。
github.com/nov/apple_id

ついでに Rails のサンプルアプリも。
github.com/nov/signin-with-apple

このサンプルアプリはこちらで動かしてるので、試したい方はどうぞ。
signin-with-apple.herokuapp.com

Sign in with Apple は OpenID Connect を採用してるんですが、現状では Native SDK でしか email や fullName は取れないようです。

そのうち UserInfo API が出てくると思うんで、出てきたら apple_id gem でもサポートしようかと思います。

ps.
とりあえず Terminal で動かすだけでいいよって方はこちらのサンプルをどうぞ。
https://gist.github.com/nov/993a303aa6badd8447f7b96fb952088e

30
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
30
16