azure-activedirectory-library-for-python icon indicating copy to clipboard operation
azure-activedirectory-library-for-python copied to clipboard

Pass Resource parameter as a String in AuthenticationContext.acquire_token_with_authorization_code

Open Sherry112 opened this issue 4 years ago • 3 comments

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. Screenshot (32)_LI Uploading Screenshot (33)_LI.jpg…

Sherry112 avatar Jun 22 '20 11:06 Sherry112

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 avatar Jun 22 '20 21:06 rayluo

@rayluo @navyasric : ETA on getting the doc updated?

henrik-me avatar Jul 27 '20 18:07 henrik-me

Chatted with Abhi who handled the update of that doc before, and she kindly agreed to take care of this doc update. Thanks Abhi!

rayluo avatar Jul 27 '20 20:07 rayluo