Skip to content

Commit

Permalink
add bearer token in header entry to support icp internal authz change (
Browse files Browse the repository at this point in the history
…#351)

Signed-off-by: Tatsuhiro Chiba <[email protected]>
  • Loading branch information
tatsuhirochiba authored and sahilsuneja1 committed Jan 23, 2018
1 parent 881a9d4 commit 5750a5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crawler/plugins/emitters/sas_emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def post(self, content='', metadata={}):
headers = {'content-type': 'application/csv'}
headers.update({'Cloud-OE-ID': cloudoe})
headers.update({'X-Auth-Token': token})
headers.update({'Authorization': 'Bearer ' + token})

params = self.gen_params(namespace=namespace, features=features,
timestamp=timestamp, source_type=system_type,
Expand Down

0 comments on commit 5750a5c

Please sign in to comment.