Currently if KG_HEADERS Includes an Authorization: header, it always be replaced by and empty token: Authorization: token
This PR attempts to keep the existing functionality when KG_HEADERS does not include Authorization by
Loading KG_HEADERS
If Authorization was NOT present in the KG_HEADERS, this maintains the existing functionality of creating in the Authorization: token $KG_AUTH_TOKEN even if KG_AUTH_TOKEN is empty string
Tested using Apache Knox 1.2 w/ JWT Authentication. This uses the form {'Authorization': "Bearer '${authToken}'"}
https://github.com/jupyter/nb2kg/issues/28
Currently if
KG_HEADERS
Includes anAuthorization:
header, it always be replaced by and empty token:Authorization: token
This PR attempts to keep the existing functionality when
KG_HEADERS
does not includeAuthorization
byKG_HEADERS
Authorization
was NOT present in the KG_HEADERS, this maintains the existing functionality of creating in theAuthorization: token $KG_AUTH_TOKEN
even ifKG_AUTH_TOKEN
is empty stringTested using Apache Knox 1.2 w/ JWT Authentication. This uses the form
{'Authorization': "Bearer '${authToken}'"}