PRN231_-_FA_2023_-_RE_1158.webp
longpm2303

PRN231_-_FA_2023_-_RE_1158.webp

Answer (Choose 1 answer)
How Authentication and Authorization works? Choose the correct order of steps.
A. 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.
B. 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.
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. None of the others.

Exit 47

Thông tin

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

Image metadata

Filename
PRN231_-_FA_2023_-_RE_1158.webp
File size
112.2 KB
Dimensions
1926px x 906px

Share this media

Back
Bên trên Bottom