Skip to content

Commit 450de5c

Browse files
authored
Merge pull request #44 from pubnub/develop
Token Management System - Client End
2 parents 447b5ac + f5caa18 commit 450de5c

File tree

179 files changed

+64140
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+64140
-78
lines changed

.pubnub.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
---
22
changelog:
3+
-
4+
changes:
5+
-
6+
text: "Token Management System - Client end"
7+
type: improvement
8+
date: Feb 18, 19
9+
version: v4.8.0
310
-
411
changes:
512
-
@@ -385,6 +392,8 @@ changelog:
385392
date: ~
386393
version: v3.6.8.1
387394
features:
395+
access:
396+
- ACCESS-TOKEN-MANAGEMENT
388397
channel-groups:
389398
- CHANNEL-GROUPS-ADD-CHANNELS
390399
- CHANNEL-GROUPS-REMOVE-CHANNELS
@@ -492,4 +501,4 @@ supported-platforms:
492501
- "Ubuntu 12.04+, with Graphics card DX9 (shader model 3.0) or DX11 with feature level 9.3 capabilities; and CPU SSE2 instruction set support."
493502
- "Mac OS X 10.8+, with Graphics card DX9 (shader model 3.0) or DX11 with feature level 9.3 capabilities; and CPU SSE2 instruction set support."
494503
version: "PubNub Unity SDK"
495-
version: v4.7.3
504+
version: v4.8.0

PubNubUnity/Assets/PubNub/Builders/Objects/CreateSpaceRequestBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ protected override void RunWebRequest(QueueManager qm){
7474
this.PubNubInstance,
7575
this.QueryParams
7676
);
77+
request = this.PubNubInstance.TokenMgr.AppendTokenToURL(request.OriginalString, CreateSpaceID, PNResourceType.PNSpaces, OperationType);
7778
base.RunWebRequest(qm, request, requestState, this.PubNubInstance.PNConfig.NonSubscribeTimeout, 0, this);
7879
}
7980

PubNubUnity/Assets/PubNub/Builders/Objects/CreateUserRequestBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ protected override void RunWebRequest(QueueManager qm){
8888
this.PubNubInstance,
8989
this.QueryParams
9090
);
91+
request = this.PubNubInstance.TokenMgr.AppendTokenToURL( request.OriginalString, CreateUserID, PNResourceType.PNUsers, OperationType);
9192
base.RunWebRequest(qm, request, requestState, this.PubNubInstance.PNConfig.NonSubscribeTimeout, 0, this);
9293
}
9394

PubNubUnity/Assets/PubNub/Builders/Objects/DeleteSpaceRequestBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ protected override void RunWebRequest(QueueManager qm)
3636
this.PubNubInstance,
3737
this.QueryParams
3838
);
39+
request = this.PubNubInstance.TokenMgr.AppendTokenToURL( request.OriginalString, DeleteSpaceID, PNResourceType.PNSpaces, OperationType);
3940
base.RunWebRequest(qm, request, requestState, this.PubNubInstance.PNConfig.NonSubscribeTimeout, 0, this);
4041
}
4142

PubNubUnity/Assets/PubNub/Builders/Objects/DeleteUserRequestBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ protected override void RunWebRequest(QueueManager qm){
3535
this.PubNubInstance,
3636
this.QueryParams
3737
);
38+
request = this.PubNubInstance.TokenMgr.AppendTokenToURL( request.OriginalString, DeleteUserID, PNResourceType.PNUsers, OperationType);
3839
base.RunWebRequest(qm, request, requestState, this.PubNubInstance.PNConfig.NonSubscribeTimeout, 0, this);
3940
}
4041

PubNubUnity/Assets/PubNub/Builders/Objects/GetMembersRequestBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ protected override void RunWebRequest(QueueManager qm){
7373
this.QueryParams,
7474
GetMembersFilter
7575
);
76+
request = this.PubNubInstance.TokenMgr.AppendTokenToURL( request.OriginalString, GetMembersSpaceID, PNResourceType.PNSpaces, OperationType);
7677
base.RunWebRequest(qm, request, requestState, this.PubNubInstance.PNConfig.NonSubscribeTimeout, 0, this);
7778
}
7879

PubNubUnity/Assets/PubNub/Builders/Objects/GetMembershipsRequestBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ protected override void RunWebRequest(QueueManager qm){
7373
this.QueryParams,
7474
GetMembershipsFilter
7575
);
76+
request = this.PubNubInstance.TokenMgr.AppendTokenToURL( request.OriginalString, GetMembershipsUserID, PNResourceType.PNUsers, OperationType);
7677
base.RunWebRequest(qm, request, requestState, this.PubNubInstance.PNConfig.NonSubscribeTimeout, 0, this);
7778
}
7879

PubNubUnity/Assets/PubNub/Builders/Objects/GetSpaceRequestBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ protected override void RunWebRequest(QueueManager qm)
4444
this.PubNubInstance,
4545
this.QueryParams
4646
);
47+
request = this.PubNubInstance.TokenMgr.AppendTokenToURL( request.OriginalString, GetSpaceID, PNResourceType.PNSpaces, OperationType);
4748
base.RunWebRequest(qm, request, requestState, this.PubNubInstance.PNConfig.NonSubscribeTimeout, 0, this);
4849
}
4950

PubNubUnity/Assets/PubNub/Builders/Objects/GetSpacesRequestBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ protected override void RunWebRequest(QueueManager qm)
7171
this.QueryParams,
7272
GetSpacesFilter
7373
);
74+
request = this.PubNubInstance.TokenMgr.AppendTokenToURL( request.OriginalString, "", PNResourceType.PNSpaces, OperationType);
7475
base.RunWebRequest(qm, request, requestState, this.PubNubInstance.PNConfig.NonSubscribeTimeout, 0, this);
7576
}
7677

PubNubUnity/Assets/PubNub/Builders/Objects/GetUserRequestBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ protected override void RunWebRequest(QueueManager qm){
4343
this.PubNubInstance,
4444
this.QueryParams
4545
);
46+
request = this.PubNubInstance.TokenMgr.AppendTokenToURL( request.OriginalString, GetUserID, PNResourceType.PNUsers, OperationType);
4647
base.RunWebRequest(qm, request, requestState, this.PubNubInstance.PNConfig.NonSubscribeTimeout, 0, this);
4748
}
4849

0 commit comments

Comments
 (0)