-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(Content API client libs): workaround generated libraries issue #182
Conversation
The generated libraries are ignoring conf.access_token, so force the header that they should be creating.
client = DefaultApi(api_client=ApiClient( | ||
configuration=conf, | ||
header_name="Authorization", | ||
header_value=access_token, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the Bearer:
part here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well. Yes. Check again in a minute.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
@@ -29,10 +29,19 @@ class EmblemClient(object): | |||
def __init__(self, host, access_token=None): | |||
conf = Configuration() | |||
|
|||
# TODO: figure out why the generated code isn't using the value below |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Thanks for adding the TODO. Reading just the updated code, it's unclear to me what we're saying is not being used. More detail would be helpful.
The generated libraries are ignoring conf.access_token, so force the header that they should be creating.