XLOG

[FirebaseAuth] Authentication 본문

Swift/Etc

[FirebaseAuth] Authentication

X_PROFIT 2023. 1. 30. 23:42

파이어베이스는 회원가입, 로그인, 회원 관리 기능을 제공한다.

로그인 수단으로는 Email and password, Federated identity provider integration(Google, Facebook, Sign in with Apple, Twitter, GitHub), Phone number authentication, Custom auth system, integration, Anonymous auth 가 있다.

 

위와 같은 방법에서 무료 버전의 경우는 3,000 DAUs( daily active users ) 까지라고 한다.

사용량을 더 늘리고 싶다면 유료버전을 사용해야 한다고 한다. 유료버전을 사용하게 되면 몇가지 기능을 더 제공하는 것 같다.

How does it work?

우선 유저로부터 authentication credentials(신임장, 신용 권한)를 얻어야 한다.

credential은 user의 email and passwor 혹은 federated identity provicde 에서 제공하는 OAuth token 가 될 수 있다.

저 credential을 Firebase Authentication SDK 로 전달을 한다.

그러면 Firebase 서버는 credential을 확인하고 response 를 유저에게 return 하게 된다.

이렇게 우리 앱에 유저 정보 중 기본적인 profile information을 Firebase Auth에서 제공을 해준다.

그 외에 유저 정보를 컨트롤 하고 싶다면 (NickName, description 등) 은 data store에 따로 연동해서 추가해서 사용할 수 있다.

 

지금 진행하고 있는 서비스에서 개인정보 취급 방침을 확인하고 도입하는 것보다 Google, Sign in with Apple 을 먼저 도입할 생각이다.

'Swift > Etc' 카테고리의 다른 글

[Swift] Async/await 의 이해  (0) 2023.02.18
[Swift] GCD 이해하기  (0) 2023.02.16
[아키텍쳐] MVC VS MVVM 의 간단한 정리  (2) 2023.02.03
[WWDC] Combine in Practice 보고 Combine 이해하기  (0) 2023.02.02
[WWDC19] Introducing Combine  (0) 2023.02.01