PRN231_-_SU_2024_-_FE_2427.webp
V

PRN231_-_SU_2024_-_FE_2427.webp

  • Media owner Văn Huy
  • Ngày thêm
Kizspy | Question: 49
(Choose 1 answer)
How Authentication and Authorization works? Choose the correct order of steps.
A. 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.
GOM
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.
B. 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.
C. Step 1. The Request reaches the Authentication Middleware.
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.
D. None of the others.

  • Like
Reactions: hiepminhcollab

Thông tin

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

Share this media

Back
Bên trên Bottom