Home / Companies / Stream / Blog / Post Details
Content Deep Dive

Server-Side Vapor Swift Implementation With Google, Apple, and Github Authentication

Blog post from Stream

Post Details
Company
Date Published
Author
Tim C.
Word Count
4,258
Language
English
Hacker News Points
-
Summary

This tutorial outlines the process of building a server application using the Vapor framework to provide authentication tokens for an iOS app that uses the Stream Chat SDK. Vapor, an open-source Swift framework for developing HTTP server applications, serves as the backend to manage various authentication types and generate tokens for user sessions. The tutorial requires specific tools like Xcode 12.3, Homebrew, and Docker, and guides users through setting up a new Vapor project, integrating the Stream SDK, and configuring the application for OAuth and Sign in with Apple. It covers setting up Google, GitHub, and Apple authentication, emphasizing the importance of securely handling API keys and secrets. The text also explains how to build a corresponding iOS app using SwiftUI to interact with the Vapor backend, detailing the login and authentication process for different methods. Additionally, it includes instructions for setting up a local database with Docker and testing the integration to ensure seamless communication between the iOS app and the server. The tutorial provides comprehensive steps for both backend and frontend development, allowing users to create a robust chat application with streamlined authentication features.