Integration iOS Client
Option1. Let user go to deep link to AUTHBLUE App
Following SwiftUI will deep link from your app to AUTHBLUE Mobile Tutorial.
For full example, go to repository
https://github.com/kenmaro3/authblue-ios-client-example (opens in a new tab)
ClickLinkScreen.swift
import SwiftUI
import Foundation
struct ClickLinkScreen: View{
private let link = "https://authblueprod.page.link/agreement?client_name=TestClient1&client_id=vGSKhQRk0aSzVB1HJ2TlZLmk&query_id=1&uid=8b1bc946-9a12-4ef9-80b1-cac7a01d35bb"
var body: some View {
GeometryReader{
let size = $0.size
VStack(
alignment: HorizontalAlignment.center){
Text(link)
.padding()
Button(action: {
UIApplication.shared.open(URL(string: link)!)
}) {
Text("Go to Link")
.fontWeight(.semibold)
.contentTransition(.identity)
.foregroundColor(.white)
.frame(width: size.width*0.4)
.padding(.vertical, 15)
.background{
Capsule()
.fill(.black)
}
}
.frame(maxWidth: .infinity)
}
.frame(maxHeight: .infinity)
}
}
}Option2. Let user scan QR code issued by AUTHBLUE Console
In stead of have a hard coded link in your app,
you can also create QR Scanner to let user access deep link via QR scanning.
Full example is in following link.