@hampton123 The Developer Portal needs to be configured to fetch and pass the appropriate token from the test console as mentioned in the official docs.
For reference, here are the high-level steps
- Register an application (backend-app) in Azure AD to represent the API.
- Register another application (client-app) in Azure AD to represent a client application that needs to call the API - in this case, the test console of the developer portal.
In Azure AD, grant permissions to allow the client-app to call the backend-app.
- Configure the test console in the developer portal to call an API using OAuth 2.0 user authorization.
- Configure an API to use OAuth 2.0 user authorization.
- Add a policy to pre-authorize the OAuth 2.0 token for every incoming request. You can use the
validate-jwt
policy for any OAuth 2.0 provider.
If you have already configured the OAuth 2.0 providers in the Azure Portal and the policies to authorize requests, then you are just missing step 4 from the above, which is just a simple setting from the Azure Portal UI as shown in the docs.