Skip to content

descope-sample-apps/native-flows-swift-sample-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

Descope's Native Flows Swift Sample App

License: MIT

Welcome to Descope's Native Flows Swift Sample App, a demonstration of how to integrate Descope native flows for user authentication within a Swift application. By exploring this project, you can understand how Descope works with Swift to manage native flows. For an example with all authentication methods, refer to the Swift Sample App.

Features

This sample app includes:

  • App Client: An example of how the client communicates with Descope.

Getting Started

Follow these steps to run the sample app and explore Descope's capabilities with Swift:

Prerequisites

Make sure you have the following installed:

  • XCode
  • an IOS Simulator

Run the app

  1. Clone this repo
  2. Open the project within Xcode
  3. Within the project settings of the project, change the myProjectId (If in a non-US region, or using a custom domain with CNAME, replace myBaseURL with your specific localized base URL)

Alt text

  1. (Optional) Self-Host Your Flow: Your Descope authentication flow is automatically hosted by Descope at https://auth.descope.io/<your_descope_project_id> but you can use your own website or domain to host your flow. You can modify the value for the flow URL in the Flow Controller files to include your own hosted page with our Descope Web Component, as well as alter the ?flow=sign-up-or-in parameter to run a different flow.
let flow = DescopeFlow(url: "https://api.descope.com/login/\(Descope.config.projectId)?flow=sign-up-or-in")

For more information about Auth Hosting, visit our docs on it here

  1. Run the simulator within Xcode - The play button located in the top left

  2. Change the value of the appInterface value in AppInterface.swift to see other examples of authentication screens

Notes:

  1. Enchanted link currently does not route back to the application. You will need to validate the token externally from a web or backend client.

Learn More

To learn more please see the Descope Documentation and API reference page.

Contact Us

If you need help you can contact us

License

Descope's Native Flows Swift Sample App is licensed for use under the terms and conditions of the MIT license Agreement.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages