PRN231_-_FA_2024_-_FE_3047.webp
clear_water

PRN231_-_FA_2024_-_FE_3047.webp

Kizspy | Question: 27 (Choose 1 answer)
FUOVERFL
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.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.

Thông tin

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

Share this media

Back
Bên trên Bottom