-
Notifications
You must be signed in to change notification settings - Fork 38
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
PLAT-10460: Implemented OBO-enabled endpoints #123
Conversation
async def __aenter__(self): | ||
return self | ||
|
||
async def __aexit__(self, exc_type, exc_val, exc_tb): |
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.
how do we document that you should use async with 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.
I added code samples in docs/authentication.md
.
self._config = config | ||
self._obo_session = obo_session | ||
|
||
self._api_client_factory = ApiClientFactory(config) |
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.
should we recreate one or reuse the one from BDK? (I'm wondering why we did it like that for the Java BDK)
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.
In java, we recreate a new one:
- https://github.com/SymphonyPlatformSolutions/symphony-api-client-java/blob/master/symphony-bdk-core/src/main/java/com/symphony/bdk/core/SymphonyBdk.java#L258
- https://github.com/SymphonyPlatformSolutions/symphony-api-client-java/blob/364fc4309fb44bab2054d310d8deededc6935c88/symphony-bdk-core/src/main/java/com/symphony/bdk/core/OboServices.java#L31
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.
Yep that's what I was wondering, do we have a good reason to do it?
If we reuse the existing one from BDK it means we don't have to use async with
Ticket
PLAT-10460
Description
Implemented OBO-enabled endpoints.
Checklist