最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

curl - I'm trying to access my Azure Function app API protected by Entra ID easy-auth from the terminal - Stack Overflow

programmeradmin5浏览0评论

After I login interactively, I go to the /.auth/me endpoint to get my access_token, but when I try to use it with curl to access a protected endpoint, it says I don't have permission.... does anyone have a clue how to do this?

Once I disable auth, I can easily use the API using only the function keys. So I'm fairly certain this is something with the easy-auth (Entra ID) setup and something with the access tokens that I'm doing wrong.

After I login interactively, I go to the /.auth/me endpoint to get my access_token, but when I try to use it with curl to access a protected endpoint, it says I don't have permission.... does anyone have a clue how to do this?

Once I disable auth, I can easily use the API using only the function keys. So I'm fairly certain this is something with the easy-auth (Entra ID) setup and something with the access tokens that I'm doing wrong.

Share Improve this question edited Mar 9 at 12:37 marc_s 756k184 gold badges1.4k silver badges1.5k bronze badges asked Mar 9 at 11:15 Robert PeterssonRobert Petersson 315 bronze badges 1
  • Well i used curl and included my session cookie, that worked for now :) – Robert Petersson Commented Mar 10 at 6:15
Add a comment  | 

1 Answer 1

Reset to default 0

Well i used curl and included my session cookie, that worked for now :)

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论