How to implement Pubnub Access Manager in swift

前端 未结 1 1482
陌清茗
陌清茗 2021-01-28 03:45

I am doing R&D on how to implement a pubnub access manager in swift, and after some research, I come to know :

  • Swift SDK does not include pubnub.grant
相关标签:
1条回答
  • 2021-01-28 04:19

    PubNub Access Manager for Swift Apps

    The PubNub Swift SDK (Access Manager Tutorial) does not have grant method because you need to init PubNub with your secret key and you should never do so in a client application. You should only do so in a secure server. Your server grants permissions to an auth-key that is passed back to your clients, like a Swift app, and that auth-key is used to init PubNub with your subscribe key and optionally your publish key.

    See Also

    • Access Manager Getting Started Guide
    • PubNub Access Manager - How It Works
    • Node SDK Docs - Security with Access Manager Tutorial
    0 讨论(0)
提交回复
热议问题