Authorization Token Error JWT Issuer Configuration

Leonardo CHIODI 5 Reputation points
2023-06-01T10:02:46.6633333+00:00

I am recovering a token from my service principal (which has the rights to my endpoint). I then pass it to my headers post request to my endpoint and get the following response :

(401) Jwt issuer is not configured

Please check this guide to understand why this error code might have been returned

https://docs.microsoft.com/en-us/azure/machine-learning/how-to-troubleshoot-online-endpoints#http-status-codes

I am doing as said here https://learn.microsoft.com/en-us/azure/machine-learning/how-to-authenticate-online-endpoint?view=azureml-api-2&tabs=python

I've wandered the microsoft documentation and haven't found anything about the jwt issuer not being configured.

User's image

Azure Machine Learning
{count} votes

1 answer

Sort by: Most helpful
  1. Leonardo CHIODI 5 Reputation points
    2023-06-21T08:47:29.7433333+00:00

    Don't use the one from the SP, use
    access_token = ml_client.online_endpoints.get_keys(name=endpoint_name).access_token


Your answer

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