question

KojimaRikuhiro-8702 avatar image
0 Votes"
KojimaRikuhiro-8702 asked ChristerLjung-3482 answered

A suggestion of documentation improvement about Request Service REST API

Now, I read Request Service REST API (preview) and tried to demonstrate calling VCs issue request API after getting the access token from Python console app using app id.
Following the page of Quickstart for Python, I have done registered a new Daemon app that calls web APIs, cloned the Python Daemon repository, and configured "parameters.json."
However, on the acquire a token, I have two questions.


  • AcquireTokenForClient API

In this snippet which acquires a token for the app, this code outputs "tokey_type," but I think it should be output "access_token."

 if "access_token" in result:
     # Call a protected API with the access token.
     print(result["token_type"])

If there is no problem, please revise it.


  • Scopes to request

In this snippet which is an example of "scope," this code is written as

 {"scope": ["https://graph.microsoft.com/.default"],}.

However, In Request Service REST API (preview),
there is a small notification like

 "Must be set to bbb94529-53a3-4be5-a069-7eaf2712b826/.default".

Of course, the latter is correct, but I believe this conflict makes the beginner of this tutorial confused.
Why not integrate as the same scope or emphasize the latter one?














azure-ad-verifiable-credentials
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for the feedback on the documentation, samples and for trying out the platform, we are reviewing your suggestions.

Juan

0 Votes 0 ·

1 Answer

ChristerLjung-3482 avatar image
0 Votes"
ChristerLjung-3482 answered

@KojimaRikuhiro-8702 - We have a Python sample for Verifiable Credentials Request API published here https://github.com/Azure-Samples/active-directory-verifiable-credentials-python

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.