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..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": "SSWS " + context().args.auth_token} + self.headers = { "Authorization" : context().args.auth_token} def test_connection(self): try: