From f314bde3e92b49d7a2ce9fab139ee072ce161581 Mon Sep 17 00:00:00 2001 From: BryanFauble <17128019+BryanFauble@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:39:21 -0700 Subject: [PATCH] Remove py file --- .../create-synapse-oauth-client.py | 26 ------------------- 1 file changed, 26 deletions(-) delete mode 100644 modules/envoy-gateway/create-synapse-oauth-client.py diff --git a/modules/envoy-gateway/create-synapse-oauth-client.py b/modules/envoy-gateway/create-synapse-oauth-client.py deleted file mode 100644 index 2f0b23c5..00000000 --- a/modules/envoy-gateway/create-synapse-oauth-client.py +++ /dev/null @@ -1,26 +0,0 @@ -import synapseclient -import json -syn = synapseclient.login() - -client_meta_data = { - 'client_name': '', - 'redirect_uris': [ - '' - ], - # 'client_uri': 'https://yourhost.com/index.html', - # 'policy_uri': 'https://yourhost.com/policy', - # 'tos_uri': 'https://yourhost.com/terms_of_service', - 'userinfo_signed_response_alg': 'RS256' -} - -# Create the client: -client_meta_data = syn.restPOST(uri='/oauth2/client', - endpoint=syn.authEndpoint, body=json.dumps(client_meta_data)) - -client_id = client_meta_data['client_id'] - -# Generate and retrieve the client secret: -client_id_and_secret = syn.restPOST(uri='/oauth2/client/secret/'+client_id, - endpoint=syn.authEndpoint, body='') - -print(client_id_and_secret)