简体   繁体   中英

Azure API - Unable to access API gateway Url from API Management

I used the open specification to create API and completed settings for OAuth2.0 with the certificate to access API. I have tried to access the Gateway URL of API from Postman, but it shows { "statusCode": 401, "message": "Unauthorized. The access token is invalid. " }

Gateway URL is like this "https://xxxx.azure-api.net/todo/api/todolist"

Please guide on how to access the API Gateway URL.

Please check the file. I have added configuration details.

API settings

在此处输入图像描述

Oauth2.0 setting

在此处输入图像描述

Policy

在此处输入图像描述

Issue resolved with help of @JimXu comment. Checked generated access token by jwt.ms and made changes in Azure inbound policy. Checked that audience, issuer, Claim values were correct and matching.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM