You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Apple开发者账号中Sign in with Apple所需Client ID与Client Secret位置查询

Sign in with Apple:找Client ID和生成Client Secret的方法

找Client ID

  • 登录Apple开发者后台,进入「Certificates, Identifiers & Profiles」
  • 点击左侧菜单的「Identifiers」,找到你为Sign in with Apple创建的App ID(移动端应用用这个)或者Services ID(Web应用用这个)
  • 进入详情页,页面顶部的「Identifier」字段就是你的Client ID

生成Client Secret(注意:这个不是后台直接提供的,需要自行生成)

  • 先获取私钥:
    1. 在开发者后台「Certificates, Identifiers & Profiles」中点击左侧「Keys」
    2. 点击「Create a key」,勾选「Sign in with Apple」并关联对应的App ID,下载生成的.p8格式私钥文件(注意:该文件只能下载一次,丢失后需重新生成)
  • 用私钥生成JWT格式的Client Secret,需注意以下参数:
    • 加密算法必须使用ES256
    • 头部需包含alg: ES256和kid: 私钥ID(私钥ID可在开发者后台Keys列表中查看)
    • 载荷需包含:
      • iss: 你的Team ID(开发者后台右上角可查看)
      • iat: 当前时间戳
      • exp: 过期时间戳(最长不能超过6个月)
      • aud: "https://appleid.apple.com"
      • sub: 你的Client ID

内容的提问来源于stack exchange,提问作者turgay2317

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.24 20:39:15