devHọc Dev

Week 1 - Day 5: Week 1 Review Quiz

Week 1 – Day 5

30 questions0s
See the answer and explanation right after each question
1
In MemberPortal's "BFF holds the session" model, where do the access_token and id_token received from the IdP live after login completes?
2
A login spec is considered incomplete if it lacks an answer to which of the following questions?
3
For the /auth/app/login entry point, how does the BFF "trust" the authentication result?
4
The guard of POST /auth/mock-session is not satisfied (STAGE=prod). Which status code is appropriate?
5
successUrl is checked with startsWith('https://portal.example.com'). Which input passes this check and causes an open redirect?
6
Why does POST /auth/mock-session return 400 when the body is sent as application/x-www-form-urlencoded?
7
Why does MemberPortal's xsrf cookie NOT set HttpOnly while sid does?
8
The SessionID1 cookie (login_sid) is set with SameSite=Strict. What happens?
9
Why is sid not given Expires/Max-Age even though the Redis session has a TTL?
10
Which of the following is NOT a reason for separating SessionID1 (login:*) and SessionID2 (sess:*)?
11
Where must the accountNo field in sess:* come from?
12
Why use GETDEL for SessionID1 in the callback instead of GET and then DEL at the end of the function?
13
Why does MemberPortal compare the X-XSRF-TOKEN header with sess.xsrfToken in Redis instead of with the xsrf cookie (double-submit)?
14
When the UI receives a 401 from /api/s/*, which cookie must NOT be deleted?
15
An attacker obtains the victim's sid cookie but not xsrf. What is the result?
16
In MemberPortal's architecture (browser → NestJS BFF → Auth0), which party is the Client according to RFC 6749?
17
Why can the MemberPortal BFF use the client_credentials grant while a SPA calling Auth0 directly cannot?
18
MemberPortal does not store the refresh_token after web login. What is the most correct reason?
19
An attacker logs in to get their own code and injects it into the victim's callback (code injection). Which mechanism directly makes /oauth/token reject this code?
20
Why does MemberPortal's callback check state before looking at the error parameter?
21
How is MemberPortal's code_challenge computed according to RFC 7636?
22
When does the auth_time item among the 7 id_token checks apply, and why does step-up also send max_age=600 along with prompt=login?
23
Why must the BFF allow-list alg = RS256 instead of reading alg from the token header during verification?
24
The BFF needs to read the user_metadata of a user who just logged in, via the Auth0 Management API. What is the correct approach according to the MemberPortal spec?
25
What does MemberPortal's "retry at most 2 times" policy for requests to the IdP mean, and which errors does it apply to?
26
The callback receives error=access_denied&error_description=maintenance::core-db. According to MemberPortal's mapping table, which screen does the user see?
27
Why does /auth/web/logout delete sess:{id} before redirecting to Auth0's /v2/logout?
28
The client stepup-password-web has two login callback URLs (/auth/stepup/callback and /auth/stepup/mfa-callback) in the Auth0 allow-list. What is the design reason?
29
In MemberPortal's Web login sequence diagram, at which step does code_verifier not appear?
30
In the RFC ↔ step matching table, MemberPortal records a separate "Not in any standard" row for deleting SessionID1 in every error branch. What is the purpose?