From b5aa5a2e675a1071eb515473e4a36dffe3bcf030 Mon Sep 17 00:00:00 2001 From: Terence Fan Date: Wed, 2 Apr 2025 13:54:49 +0800 Subject: [PATCH 1/2] update python aad sample --- samples/python/chatapp-microsoft-entra-id/client.py | 9 +++++++++ .../python/chatapp-microsoft-entra-id/requirements.txt | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 samples/python/chatapp-microsoft-entra-id/client.py diff --git a/samples/python/chatapp-microsoft-entra-id/client.py b/samples/python/chatapp-microsoft-entra-id/client.py new file mode 100644 index 000000000..cf8ecdd28 --- /dev/null +++ b/samples/python/chatapp-microsoft-entra-id/client.py @@ -0,0 +1,9 @@ +from azure.messaging.webpubsubclient import ( + WebPubSubClient, +) + +from azure.messaging.webpubsubclient.models import CallbackType + +if __name__ == '__main__': + client = WebPubSubClient("") + client.subscribe(CallbackType.CONNECTED, lambda: print("Connected!")) \ No newline at end of file diff --git a/samples/python/chatapp-microsoft-entra-id/requirements.txt b/samples/python/chatapp-microsoft-entra-id/requirements.txt index 92e523159..9ed2fff67 100644 --- a/samples/python/chatapp-microsoft-entra-id/requirements.txt +++ b/samples/python/chatapp-microsoft-entra-id/requirements.txt @@ -1,3 +1,4 @@ -azure-messaging-webpubsubservice==1.0.0 +azure-messaging-webpubsubclient~=1.1.0 +azure-messaging-webpubsubservice~=1.2.0 azure-identity flask From 1ee41663aa432d10e2e1db1f3219a9075c0bbfd9 Mon Sep 17 00:00:00 2001 From: "Liangying.Wei" Date: Sat, 13 Sep 2025 22:38:16 +1000 Subject: [PATCH 2/2] Update socketio_e2e.yml to remove pull_request_target (#849) Removed pull_request_target trigger for workflows. --- .github/workflows/socketio_e2e.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/socketio_e2e.yml b/.github/workflows/socketio_e2e.yml index d79bfd404..e7556e285 100644 --- a/.github/workflows/socketio_e2e.yml +++ b/.github/workflows/socketio_e2e.yml @@ -7,10 +7,6 @@ on: branches: [ "main" ] paths: - 'sdk/**' - pull_request_target: - branches: [ "main" ] - paths: - - 'sdk/**' env: NODE_VERSION: '18.x' # set this to the node version to use jobs: @@ -50,4 +46,4 @@ jobs: SocketIoPort: 3000 run: | pushd sdk/webpubsub-socketio-extension - yarn run test \ No newline at end of file + yarn run test