用途:该技能用于指导构建集成 Ping Orchestration iOS SDK(又称 Ping Identity iOS SDK,原 ForgeRock iOS SDK)的 iOS 应用,可生成完整示例工程或仅生成 SDK 集成文件。
主要能力:支持三种流程——Journey(原生嵌入,SwiftUI 渲染认证 UI,不启动浏览器)、OIDC Web(OidcWebClient,使用 SFSafariViewController 或 ASWebAuthenticationSession)、DaVinci(原生但使用 collectors)。回调/collector 分三档:Basic、Standard、Full fat(后者需 Facebook、Google、ReCaptcha Enterprise 依赖)。
使用方式:以 /ping-orchestration-ios-sdk <args> 调用。无参数进入向导模式,询问意图(A 新建示例应用 / B 集成到现有应用 / C 浏览参考指南 / D 其他)。参数形式支持 create-sample "<描述>"、app-name "<名称>"、output-path "<路径>"。需提供 flowType、clientId、redirectUri、discoveryEndpoint 等;Journey 还需 serverUrl、callbackTier 等。output-path 时按 assets/project-scaffolding.md 生成工程(部署目标 18.0);否则内联打印文件。安装示例:.package(url: "https://github.com/ForgeRock/ping-ios-sdk", from: "2.0.0"),或 pod 'PingJourney' 等。
限制:代码示例强制使用完整变量名;Node 非 Equatable,需用 Bool 标志跟踪状态;callback 属性为非可选 String;redirectUri 必须用自定义 scheme,discoveryEndpoint 须以 https:// 开头并以 /.well-known/openid-configuration 结尾;scopes 必须含 openid。未提供确切成功验证与定价信息。