0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

SwiftでSign In With Appleがめんどかった

Last updated at Posted at 2024-09-04

はじめに

iOSアプリのリリースの際にサードパーティー製の認証(google signinなど)を用いるとSign in with Appleの機能を必須にしないといけないらしい.そのためにSign in with Appleを実装したのだが,意外と手順が面倒だったのでまとめる

前提

FirebaseAuthを用いてSign in with Appleを実装する.
Apple Developer Programへの登録は済んでいる
基本的なFirebaseとクライアントの連携は終わっているものとする

準備

Certificates, Identifiers & ProfilesページでSign in with Appleを有効にする

スクリーンショット 2024-09-04 18.15.30.png

Server-to-Server Notification Endpointはhttps://YOUR_FIREBASE_PROJECT_ID.firebaseapp.com/__/auth/handlerに設定する.YOUR_FIREBASE_PROJECT_IDは自分のfirebase consoleから確認してください

スクリーンショット 2024-09-04 18.16.25.png

そして注意すべくポイントとしてfirebaseの連携するアプリケーションのバンドルIDとApple Developer上で登録するバンドルIDは一致させてください.

スクリーンショット 2024-09-04 18.25.00.png

そしてXcode上でもSigning & Capabolitiesの項目にSign in with Appleを追加してください.

スクリーンショット 2024-09-04 18.20.36.png

その後firebaseのドキュメントに沿って実装していけば無事にSign in with Appleを実装することができます.

終わりに

Sign in with Appleをする方(エンドユーザー)は簡単でいいが実装する方(開発者)は意外とめんどい...

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?