- Open iOS-auth0.xcodeproj
- Install the Ditto Swift Package (see the ditto documentation)
- In your Auth0 account, create
Native
application asiOS
with 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
ClientId
andDomain
credentials 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 webhookName
identifier and webhookURL
. - In
ContentView.swift
, inAuthDelegate
methodauthenticationRequired(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 ID
value. - Run the app on a device and run another instance on the simulator.
Contact us at support@ditto.live to request a free license token!