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.