PRN231_-_SP_2024_-_Block_5_-_FE_1944.webp
W

PRN231_-_SP_2024_-_Block_5_-_FE_1944.webp

  • Media owner Wrath87
  • Ngày thêm
(Choose 1 answer)
How Authentication and Authorization works? Choose the correct order of steps.
A. Step 1. The Request reaches the Authentication Middleware.
C Step 2. Authorization Middleware (UseAuthorization()) checks to see if the destination page needs Authorization. If No then the user is allowed to visit the Page If Yes it invokes the ChallengeAsync() on the Authentication Handler. It redirects the user to Login Page.
Step 3. The Authentication Middleware checks to see if a proper credential present in the request. It will use the default authentication handler to do that. It could be a Cookies handler or JWT handler.Since it does not find any credential, it will set the User Property to an anonymous user.
B. None of the others.
C. Step 1. The Request reaches the Authentication Middleware.
Step 2. The Authentication Middleware checks to see if a proper credential present in the request. It will use the default authentication handler to do that. It could be a Cookies handler or JWT handler.Since it does not find any credential, it will set the User Property to an anonymous user.
Step 3. Authorization Middleware (UseAuthorization()) checks to see if the destination page needs Authorization. If No then the user is allowed to visit the Page If Yes it invokes the ChallengeAsync() on the Authentication Handler. It redirects the user to Login Page.
D. Step 1. The Authentication Middleware checks to see if a proper credential present in the request. It will use the default authentication handler to do that. It could be a Cookies handler or JWT handler.
Since it does not find any credential, it will set the User Property to an anonymous user.Step 2. The Request reaches the Authentication Middleware.
Step 3. Authorization Middleware (UseAuthorization()) checks to see if the destination page needs Authorization. If No then the user is allowed to visit the Page If Yes it invokes the ChallengeAsync() on the Authentication Handler. It redirects the user to Login Page.


Q: 23

Thông tin

Category
PRN231
Thêm bởi
Wrath87
Ngày thêm
Lượt xem
2,387
Lượt bình luận
7
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRN231_-_SP_2024_-_Block_5_-_FE_1944.webp
File size
456.1 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom