From 8c036a5766fea33c1155e0e518319a95cc551471 Mon Sep 17 00:00:00 2001 From: Omkar Gurav Date: Tue, 7 Nov 2023 12:54:56 -0400 Subject: [PATCH 1/2] Fix the Okta auth with SSWS --- connectors/okta/app.py | 4 ++++ connectors/okta/connector/server_access.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/connectors/okta/app.py b/connectors/okta/app.py index 2a4ca6ad..84ca657d 100644 --- a/connectors/okta/app.py +++ b/connectors/okta/app.py @@ -23,6 +23,10 @@ def __init__(self): def setup(self): super().setup() + + if 'SSWS' not in self.args.auth_token: + self.args.auth_token = 'SSWS '+ self.args.auth_token + context().asset_server = AssetServer() context().full_importer = FullImport() context().inc_importer = IncrementalImport() diff --git a/connectors/okta/connector/server_access.py b/connectors/okta/connector/server_access.py index 1ad07899..2be98776 100644 --- a/connectors/okta/connector/server_access.py +++ b/connectors/okta/connector/server_access.py @@ -16,7 +16,7 @@ def __init__(self): with open('connector/okta_config.json', 'rb') as json_data: self.config = json.load(json_data) self.server = "https://" + context().args.host - self.headers = {"Authorization": "SSWS " + context().args.auth_token} + self.headers = {"Authorization": context().args.auth_token} def test_connection(self): try: From cb7b58977bf924131ca2f970bf6c10dcc548ffa8 Mon Sep 17 00:00:00 2001 From: Omkar Gurav Date: Wed, 8 Nov 2023 09:01:48 -0400 Subject: [PATCH 2/2] Tigger travis build --- connectors/okta/connector/server_access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectors/okta/connector/server_access.py b/connectors/okta/connector/server_access.py index 2be98776..4fb64707 100644 --- a/connectors/okta/connector/server_access.py +++ b/connectors/okta/connector/server_access.py @@ -16,7 +16,7 @@ def __init__(self): with open('connector/okta_config.json', 'rb') as json_data: self.config = json.load(json_data) self.server = "https://" + context().args.host - self.headers = {"Authorization": context().args.auth_token} + self.headers = { "Authorization" : context().args.auth_token} def test_connection(self): try: