For redirect URL in IOS, you need to first setup deep linking in your application.
Steps:
- Register a custom URL
- listen for your custom URL inside application by configuring scheme, host, and path
- Finally, now that your application is set up to listen for specific url, add that url as redirect.
Finally, launch your Swedish BankID application with this format:
let url = URL(string: "https://app.bankid.com/?redirect=https://com.sampleapp.deeplink.app/") UIApplication.shared.open(url!, options: [.universalLinksOnly:true]) { (success) in / handle success/failure
}
First of all, try this BankId redirect without a token and without creating a bankiD test account as Bank id will generate an error of no existing account but it will redirect you back to your application automatically.
After successfully testing your deep link, create a test BankID account and start user verification with Signicat Express Authentication REST API (see high-level documentation here: https://developer.signicat.com/express/docs/identification/#guides and detailed API reference here: https://developer.signicat.com/express/apis/authentication.html#tag/Sessions)
Or you start user verification with Signicat so-called “headless” flow https://api.signicat.io/identification/v2/sessions