How does UseWindowsAzureActiveDirectoryBearerAuthentication work in validating the token?

后端 未结 2 555
小鲜肉
小鲜肉 2021-01-02 01:28

I am following the below GitHub sample for implementing Authentication mechanism across WebApp and WebApi.

https://github.com/AzureADSamples/WebApp-WebAPI-OpenIDConn

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-02 02:18

    The [Authorize] decoration in the controller or whichever method we specify triggers the Owin security handler to validate the token and generates the claims.

提交回复
热议问题