- Open iOS-auth0.xcodeproj
- Install the Ditto Swift Package (see the ditto documentation)
- In your Auth0 account, create
Nativeapplication asiOSwith your choice of name. - In your Auth0 account, configure both callback and logout URLs (the same) as:
ditto.iOS-auth0://dev-yde4hme57nj5emiw.us.auth0.com/ios/ditto.iOS-auth0/callback. - Enter your Auth0
ClientIdandDomaincredentials inAuth0.plist - Set up your webhook, for example on Glitch (see ditto documentation)
- In your Ditto account portal, in the section
Authentication Mode & Webhook Settings, selectwith authentication. In the provided fields add a webhookNameidentifier and webhookURL. - In
ContentView.swift, inAuthDelegatemethodauthenticationRequired(authenticator: DittoAuthenticator)ensure the webhook name identifier is the value for parameterprovider, e.g."glitch". - In Ditto.Config extension replace
"YOUR_APP_ID_HERE"with your Ditto portalApp IDvalue. - Run the app on a device and run another instance on the simulator.
Contact us at support@ditto.com to request a free license token!