Cognitive Services with `authorization_code` request.

Joshua B 0 Reputation points

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

  1. Rohit Mungi 49,131 Reputation points Microsoft Employee Moderator

    @Joshua B Did you get a chance to check if the below suggestion is what you are looking for?


Sign in to comment

1 answer

  1. Rohit Mungi 49,131 Reputation points Microsoft Employee Moderator

    @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

    Sign in to comment
Sign in to answer

Your answer