Cognitive Services with `authorization_code` request.

Joshua B 0 Reputation points
2024-09-21T04:00:33.6966667+00:00

When trying to create a token for use in an immersive reader, it's an option to use a client_credentials grant type. This, however, is not my preferred method. I want to grant delegated access to a authorization_code request from Microsoft SSO. The issue is that using the scope https://cognitiveservices.azure.com/.default is not allowed when using other (specific) scopes. There are no docs for any scopes on cognitive services, nor are there any options in App Registrations to add the scope. I know https://cognitiveservices.azure.com/.default is a valid scope because it works in Postman. If anyone knows the scopes, please tell me 🙏. Note, it doesn't seem to work without specifying a tenant.CleanShot 2024-09-20 at 20.56.38@2x

Azure AI Immersive Reader
Azure AI Immersive Reader
An Azure Applied AI Service that embeds text reading and comprehension capabilities into your applications.
29 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,931 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 47,026 Reputation points Microsoft Employee
    2024-09-23T06:35:01.8433333+00:00

    @Joshua B Is this what you are looking for delegated access with Entra ID?

    https://learn.microsoft.com/en-us/azure/ai-services/authentication#authenticate-with-microsoft-entra-id

    AFAIK the valid scope is https://cognitiveservices.azure.com/.default with cognitive services.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.