Skip to content

A simple, provider-agnostic and domain driven approach to clientside authentication

Notifications You must be signed in to change notification settings

alo9507/EZClientAuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EZClientAuth Example App

Complete EZClientAuth code for the tutorial Domain Driven Authentication.

For simplicity, EZClientAuth is included in the same project as the demo app, but it can also be extracted to its own Framework and imported as a dependency into multiple apps.

By default, the demo app is configured with a MockRemoteAuthProvider.

How to Configure Firebase Auth as a RemoteAuthProvider

  1. Run pod install
  2. Open EZClientAuth.xcworkspace. Make sure you're not still in EZClientAuth.xcodeproj because it is not aware of your dependencies.
  3. Uncomment FirebaseRemoteAuthProvider. Uncomment AuthProviderConfiguration.
  4. Follow the official Google FirebaseAuth documentation for iOS to integrate the Firebase SDK into your project.
    NOTE: Recent changes in XCode projects paving the way for SwiftUI mean you should call FirebaseApp.configure in SceneDelegate not AppDelegate as it says in the Google documentation.
  5. Be sure to enable Email/Password sign-in in the Authentication tab of your iOS Firebase project.
  6. Sign up a new user. Then sign-in or sign-out as you please!

About

A simple, provider-agnostic and domain driven approach to clientside authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published