Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hi,

I am a newb to openapi-python-client. It is really convenient to implement. I have used this in one of my projects but facing a troublesome issue. Hope I can find the answer or solution here.

I have an API server hosted on the AZURE application service. It works fine in the past. Recently, I have integrated the Azure AD service, which is based on OAUTH2, into my API. Although I have tried AuthenticateClient based on the document, the generated code can not retrieve data from the API. I have tried to use other clients such as requests, which works fine. My code is like the one below:

`from octai_client_api_with_fl_and_authentication_client import AuthenticatedClient

headers = api_auth()
client = AuthenticatedClient(base_url = base_url, token=headers['Authorization'])
`
I have also tried to look into the source code but can not find any clue. Hope I can find the solution to the authentication.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.