Bearer error - invalid_token - The signature key was not found

前端 未结 4 1391
醉梦人生
醉梦人生 2021-01-12 09:04

I have an Angular 7 application interfacing with a .Net Core 2.2 API back-end. This is interfacing with Azure Active Directory.

On the Angular 7 side, it is authent

4条回答
  •  情歌与酒
    2021-01-12 09:39

    1. Verify the values that you send for request the jwt token (eg: grant_type, client_secret, scope, client_id, etc)
    2. Ensuere that you are using the appropiate token. That's all!

    Here is my mistake: I was using Postman, and request a token and set it to a varibale "Var_Token1":

    pm.environment.set("Var_Token1", pm.response.json().access_token);
    

    But when I need to use the token for my final request, I selected and use the wrong token (Var_Token2):

    Authorization: Bearer {{Var_Token2}}
    

提交回复
热议问题