Talking to IdentityServer4 with an Angular SPA application for authentication/authorization receiving a token then talking to Web API

后端 未结 1 2047
無奈伤痛
無奈伤痛 2021-02-05 12:45

I have an asp.net core Web API. I am currently making calls directly to it using an Angular 4 app.

I now want to add authentication and authorization layer.

I wo

相关标签:
1条回答
  • 2021-02-05 13:15

    Identity Server has different flows/grant types, the one you talking about called implicit in that case Identity Server will return a jwt token so you have to be storing that jwt token on a client and then attaching that token to request header when requesting your secure webapi routes.

    Official samples it is very good starting point also checkout their blog that has lots of useful info covering the topic.

    Talking about the good videos on the topic here is a good one from the recent NDC conf IdentityServer4: New & Improved for ASP.NET Core also if you want to learn stuff more deeply you can checkout this pluralsignt course by Dominick Baier

    0 讨论(0)
提交回复
热议问题