← All Learning Paths

Identity Platform Engineer

Design and operate identity systems: OAuth 2.0 and OIDC flows, scopes, token validation and revocation, MFA, and policy-based authorization.

roleadvanced8 nodes12.25h total

Path overview

设计与运维身份系统:OAuth 2.0 与 OIDC 流程、作用域、令牌校验与吊销、MFA,以及基于策略的授权。

Design and operate identity systems: OAuth 2.0 and OIDC flows, scopes, token validation and revocation, MFA, and policy-based authorization.

  1. Adapt "Jose ES256 JWT Sign and Verify With Key Pair" to a second input and compare the new output with the behavior described in "Sign and verify JWTs with the jose library using an ECDSA P-256 key pair, protected headers,".

    Completion criteria: Change one constant in "Jose ES256 JWT Sign and Verify With Key Pair", rerun, and attach both stdout captures plus a one-line diff explaining what moved.

    Next step: TOTP Code Generator (RFC 6238)

    ⏱ 0.75h

  2. Execute "TOTP Code Generator (RFC 6238)", change one constant, and describe how the output diverges from "Generate and verify time-based one-time passwords from base32 secrets, with configurable".

    Prerequisites: Jose ES256 JWT Sign and Verify With Key Pair

    Completion criteria: Paste the command, the exit code, and the output line matching "Generate and verify time-based one-time passwords from base32 secrets, with configurable"; then show a second run with a changed parameter.

    Next step: FastAPI JWT Refresh Token Rotation

    ⏱ 0.75h

  3. Run the identity platform engineer snippet "FastAPI JWT Refresh Token Rotation", capture stdout, and show which line demonstrates the documented behavior: "Issue short-lived access tokens plus rotating refresh tokens in FastAPI, detecting reuse of".

    Prerequisites: TOTP Code Generator (RFC 6238)

    Completion criteria: Save two runs of "FastAPI JWT Refresh Token Rotation" side by side — the original input and one changed value — and annotate the line where the output diverges.

    Next step: Casbin

    ⏱ 0.75h

  4. Read "Casbin"'s documented surface around "casbin.NewEnforcer casbin.NewEnforcer(modelPath, policyPath)", then build a minimal endpoint and log the response.

    Prerequisites: FastAPI JWT Refresh Token Rotation

    Completion criteria: Run a request against "Casbin", paste the response, and add one deliberately invalid call with its error.

    Next step: Add PKCE to an OAuth Public Client Flow

    ⏱ 1h

  5. Execute "Add PKCE to an OAuth Public Client Flow" end to end, then repeat the last step with one parameter changed and compare "Harden an OAuth authorization-code flow for public clients with PKCE so intercepted codes".

    Prerequisites: Casbin

    Completion criteria: Run the steps through "Harden an OAuth authorization-code flow for public clients with PKCE so intercepted codes", paste the command output, and mark the line that matches "A 43-character verifier and its SHA-256 challenge, single-use and never reused across"; then rerun with one parameter changed.

    Next step: How to Implement JWT Revocation and Blocklisting

    ⏱ 0.5h

  6. Read "How to Implement JWT Revocation and Blocklisting" for the "Accept the stateless trade-off" argument, then name the decision in identity platform engineer work it would change.

    Prerequisites: Add PKCE to an OAuth Public Client Flow

    Completion criteria: Attach a one-page summary that quotes "Accept the stateless trade-off", lists two trade-offs, and links the commit where you applied it.

    Next step: Validate Token Claims Against a Policy

    ⏱ 1h

  7. In the "Identity Platform Engineer" path, implement "Validate Token Claims Against a Policy" so JSON object: { claims, now, policy: { maxAgeSeconds, audience?, yields [expired], including the second sample's edge case.

    Prerequisites: How to Implement JWT Revocation and Blocklisting

    Completion criteria: Submit a solution for "Identity Platform Engineer" that passes both samples ({now:1700000100,claims:{exp:1700000000,iat:1699990000,aud:ap to [expired]) and attach the failing case you fixed.

    Next step: Capstone: Identity Platform Engineer

    ⏱ 0.5h

  8. Build "Implement an OAuth2 Authorization Code Server" through its phases, keeping "PKCE verification" independently testable.

    Prerequisites: How to Implement JWT Revocation and Blocklisting, Validate Token Claims Against a Policy

    Completion criteria: Run the project's test command for "Implement an OAuth2 Authorization Code Server", paste the passing output, and attach the acceptance note for "PKCE verification" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h