PubNub Access Manager (PAM)

Fine grain read and write access control by person, device or channel

What Access Manager Does

  • Syndicate streams by providing authorization to users to read/write messages to one or more channels
  • Grant/revoke permissions for your real time streams at the user/device, channel or key level
  • Works with Auth tokens from any existing authentication system: Facebook Connect, Twitter, Google, LDAP, or homegrown solutions

Key Features

  • Serverless, easy to use, key based security for all of your apps
  • Manage Users, intervene in user actions when needed on a per subscriber basis
  • Provide Authorization and access control to channels
PubNub Data Security and Access Manager key icon key icon key icon key icon PubNub Data Security and Access Manager
PubNub Data Security and Access Manager

Resources

Get the Code
    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    9. 9
    10. 10
    11. 11
    12. 12
  1. // grants read & write permissions
  2. // for 5 minutes to channel
  3. // my_channel for my_authkey
  4.  
  5. pubnub.grant({
  6. channel: 'my_channel',
  7. auth_key: 'my_authkey',
  8. read: true,
  9. write: true,
  10. ttl: 5,
  11. callback: function(m){console.log(m)}
  12. });
    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    9. 9
  1. // grants read & write permissions
  2. // for 5 minutes to channel
  3. // my_channel for my_authKey
  4.  
  5. pubnub.AuthenticationKey = my_authKey;
  6. pubnub.GrantAccess<string>(channel=
  7. "my_channel", read=true, write=true,
  8. grantTimeLimitInSeconds=300,
  9. DisplayReturnMessage, DisplayErrorMessage);

Try PubNub Today

Connect up to 100 devices for Free
Get Started with PubNub Realtime Data Stream Network
Loading...