azure-activedirectory-library-for-python
azure-activedirectory-library-for-python copied to clipboard
Pass Resource parameter as a String in AuthenticationContext.acquire_token_with_authorization_code
Hello, I need to pass the Resource parameter in ADAL AuthenticationContext.acquire_token_with_authorization_code as a string parameter (i.e. I want to pass the client-id in Resource field). However, this parameter can only be passed as a URI field.
This option is available in ADAL for Android but not available for Python. Can you please explain what the resource parameter is and how can I do this.
Thanks in advance.
It is only documented as "A URI" because most resource looks like a URI, but that parameter's type is just a string. You can go ahead and pump in a value you see fit, and see how it goes. :-)
By the way, thanks for your screenshot, which reminds us that we would need to somehow update that docs.microsoft.com page there to reflect our recent notice on this repo's homepage:
This library, ADAL for Python, will no longer receive new feature improvements. Instead, use the new library MSAL for Python.
- If you are starting a new project, you can get started with the MSAL Python docs for details about the scenarios, usage, and relevant concepts.
- If your application is using the previous ADAL Python library, you can follow this migration guide to update to MSAL Python.
- Existing applications relying on ADAL Python will continue to work.
@rayluo @navyasric : ETA on getting the doc updated?
Chatted with Abhi who handled the update of that doc before, and she kindly agreed to take care of this doc update. Thanks Abhi!