Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Building a Vapor Swift backend integration with authentication and authorization

Building a Vapor Swift backend integration with authentication and authorization

When integrating with many online services, there is often a bit of serverside glue you need to create yourself. Stream’s chat service is no different. In this talk Jeroen will focus on what you need to create an authentication and authorization backend that integrated with a service provider. It doesn’t matter which. Stream’s service is only used as an example of a third party service you might want to integrate with. The core of the talk will be about how to create a Vapor Swift backend for your app and your third party service.

We will cover the basics of setting up a Vapor Swift project and after that integrating with a third party service. Once that’t done, some form of authentication and authorization will be added.

Jeroen Leenarts (AppForce1)

August 30, 2022
Tweet

More Decks by Jeroen Leenarts (AppForce1)

Other Decks in Programming

Transcript

  1. G E T S T R E A M .

    I O Building a Vapor Swift backend integration with authentication and authorization
  2. G E T S T R E A M .

    I O Building a Vapor Swift backend integration with authentication and authorization
  3. G E T S T R E A M .

    I O Jeroen Leenarts • Developer Relations Manager: Developer Experience • Podcast: AppForce1 • Book: Being a Lead Developer • Over 20 years of experience
  4. G E T S T R E A M .

    I O Why talk about Building a Vapor Swift backend integration?
  5. G E T S T R E A M .

    I O Stream Chat • The #1 Chat API for Custom Messaging Apps. • Add fast, real-time messaging to your application in days • Free trial available, no credit card required .N ET SD K too
  6. G E T S T R E A M .

    I O Trusted by many companies
  7. G E T S T R E A M .

    I O Building a Vapor Swift backend integration with authentication and authorization
  8. G E T S T R E A M .

    I O • Web framework for Swift, written in Swift • For example: • Backends • Web apps • APIs • HTTP servers in Swift. What is Vapor Swift?
  9. G E T S T R E A M .

    I O • Version 1.0 - September 2016 • Version 2.0 - May 2017 • Version 3.0 - May 2018 • Version 4.0 - April 2020 What is Vapor Swift?
  10. G E T S T R E A M .

    I O • Small footprint • Memory and CPU efficient • Quick start-up time • No JIT • Hardly any warm-up • No GC but Arc • Deterministic performance • Full stack Swift Why Vapor Swift?
  11. G E T S T R E A M .

    I O • A Vapor Swift backend • Integrated with: • Google • Github • ( Sign-in with Apple) • Stream So what are we building?
  12. G E T S T R E A M .

    I O • A Vapor Swift project • A database • Several Swift packages • An account with: • Google / Github /Apple and Stream What components do we need?
  13. G E T S T R E A M .

    I O Let’s get started https://webauthn.io/
  14. G E T S T R E A M .

    I O Wrap-up https://webauthn.io/
  15. G E T S T R E A M .

    I O Questions?
  16. G E T S T R E A M .

    I O Thank You.
  17. G E T S T R E A M .

    I O All info: http://appforce1.net/360idev Blog post (by Tim Condon): https://getstream.io/blog/vapor-swift-stream-server/ More info here