Skip to content
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

Merged
merged 3 commits into from
Sep 16, 2021

Conversation

engelke
Copy link
Contributor

@engelke engelke commented Sep 15, 2021

The generated libraries are ignoring conf.access_token, so force the header that they should be creating.

The generated libraries are ignoring conf.access_token, so force the header that they should be creating.
@engelke engelke requested a review from a team as a code owner September 15, 2021 23:46
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 15, 2021
@engelke engelke requested a review from ace-n September 15, 2021 23:46
client = DefaultApi(api_client=ApiClient(
configuration=conf,
header_name="Authorization",
header_value=access_token,
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@ace-n ace-n changed the title Workaround generated libraries issue fix(Content API client libs): workaround generated libraries issue Sep 16, 2021
@@ -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
Copy link
Collaborator

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.

@engelke engelke merged commit e640523 into main Sep 16, 2021
@engelke engelke deleted the engelke-patch-1 branch September 16, 2021 15:42
@grayside grayside added this to the v0.5.0 milestone Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants