Using Authentication with Azure AD services #723
Unanswered
GaryChen0311
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions