No video

How to Integrate Auth0 by Okta in a SwiftUI App

Learn how to add login and logout to your SwiftUI-based iOS apps with Auth0 authentication!
This tutorial will walk you through the process of adding login and logout capability to a starter SwiftUI project. You’ll learn about the Auth0.swift package, which gives Swift-based applications the ability to interface with Auth0’s authentication and authorization service. You’ll also learn how to connect your app to Auth0, add a login screen to your app, add logout functionality, and present the user’s profile information onscreen.
This video has a companion Github repository that contains both the starter and completed versions of the tutorial project here: github.com/aut...
You can download the zipped version of the repository here: github.com/aut...
Chapter Markers:
00:00 Introduction
00:39 What you’ll build
03:54 The starter project
05:25 ContentView: The app’s main view
09:26 Profile: Where user info lives
11:19 Introducing Auth0.swift
12:30 Add Auth0.swift to the project
14:02 Sign up for an Auth0 account
14:44 Register the app with Auth0
17:10 Create a property list
19:38 Create the callback URLs
23:38 Create a user
25:06 Implement login
29:54 Implement logout
32:01 Run the app with login and logout enabled
___________________________________________
Learn with Auth0 by Okta
Try Auth0 for free - a0.to/yt-signup
The Auth0 by Okta blog - a0.to/blog
___________________________________________
Follow Us on Social
Twitter - / oktadev
LinkedIn - / oktadev

Пікірлер: 12

  • @rajatalha3996
    @rajatalha3996 Жыл бұрын

    Very good tutorial for understanding this package. Appreciated

  • @OktaDev

    @OktaDev

    Жыл бұрын

    Thanks! Glad it helped

  • @iamsagb
    @iamsagb Жыл бұрын

    Man this video have been a life saver..Keep doing this...🔥

  • @michaelgoldstein8516
    @michaelgoldstein8516 Жыл бұрын

    This is great but how would I display the user's information in another view? Like if I have a user profile screen in another view and the user navigates to that view from the main screen where they logged in, how do I pull that data across?

  • @mihailpopa1101
    @mihailpopa110111 ай бұрын

    What is the code that actually downloads the picture payload? The JWT only contains the URL of the picture and putting the URL i to the profile object doesn’t trigger the download of the picture itself…

  • @user-ty4xt5ww6w
    @user-ty4xt5ww6w Жыл бұрын

    it works on simulator but on device douse not work .coud be the problem from bundele id?

  • @user-zo8ym7xt5x
    @user-zo8ym7xt5x9 ай бұрын

    Great video!! Could you also make video or give some hint to teach us how to use refresh token?

  • @OktaDev

    @OktaDev

    9 ай бұрын

    Thanks for watching! We've got this video on Refresh Tokens: kzread.info/dash/bejne/fqOrrK-wkZqyc7g.htmlfeature=shared Hope that helps

  • @khayn9ne1
    @khayn9ne14 ай бұрын

    How to use this on tvos

  • @LawJolla
    @LawJolla Жыл бұрын

    The entire point of authentication is to make authenticated API calls, not display a login and logout screen. Disappointing that Auth0 doesn't provide a real world example.

  • @OktaDev

    @OktaDev

    11 ай бұрын

    One purpose of using Auth0 is for the authentication part, which is identifying the user via the login and logout process, which is what’s covered in this video. The other purpose is the authorization part, which is about getting the permissions to call the API, which we’ll cover in its own video that’s coming soon. Hope that helps

  • @LawJolla

    @LawJolla

    11 ай бұрын

    @@OktaDev as a 5 year Auth0 customer I’ve come to expect comprehensive tutorials. I will temper my expectations.