本文介绍了Apple推送通知身份验证密钥(沙盒和生产)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我最近在为给定iOS客户端创建证书时注意到了一个新选项。I recently noticed a new option when creating a certificate for a given iOS client.该选项标题为获取身份验证密钥以生成服务器 - 代币。您可以使用这些令牌作为通知请求的证书的替代方案。Get an authentication key to generate server-side tokens. You can use these tokens as an alternative to certificates for your notification requests.一个身份验证密钥可以用于多个应用程序,而不是到期。One authentication key can be used for multiple apps and does not expire.如何设置呢?推荐答案 基于Apple推送通知令牌的身份验证是使用提供程序证书连接到APN的替代方法。提供者API支持JSON Web Token(或JWT),一种开放标准,用于将身份验证声明与推送消息一起传递给APN。{ "alg": "ES256", "kid": "ABC123DEFG"}{ "iss": "DEF123GHIJ", "iat": 1437179036 }有关生成签名JSON Web令牌的可用库列表的其他信息,请参阅 https://jwt.ioFor additional information along with list of available libraries for generating signed JSON web tokens, refer to https://jwt.io这是一个快速的库来签署你的JSON Web令牌(或JWT): kylef / JSONWebToken.swiftThis is a swift library to sign your JSON Web Token (or JWT) : kylef/JSONWebToken.swift消息: APPLE:提供商身份验证令牌 WWDC 2016 - 会话724:基于令牌身份验证WWDC 2016 - Session 724 : Token Based Authentication PS: 最大的区别在于The Key Way不会过期,证书将在一年后过期。 这篇关于Apple推送通知身份验证密钥(沙盒和生产)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-24 14:08