Skip to content

Commit

Permalink
add Bearer string (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianzhangbjz authored and dymurray committed May 10, 2018
1 parent 834b97a commit da5cdba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apb/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def relist_service_broker(kwargs):
kwargs['basic_auth_password']))
}
elif kwargs['auth_token'] is not None:
headers = {'Authorization': kwargs['auth_token']}
headers = {'Authorization': "Bearer " + kwargs['auth_token']}
else:
headers = {'Authorization': token}

Expand Down Expand Up @@ -758,7 +758,7 @@ def broker_request(broker, service_route, method, **kwargs):
kwargs['basic_auth_password']))
}
elif kwargs['auth_token'] is not None:
headers = {'Authorization': kwargs['auth_token']}
headers = {'Authorization': "Bearer " + kwargs['auth_token']}
else:
token = openshift_client.Configuration().get_api_key_with_prefix('authorization')
headers = {'Authorization': token}
Expand Down

0 comments on commit da5cdba

Please sign in to comment.