[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78K4FP1WASPYVEXBFK8TM53":3,"skill-same:01M78K4FP1WASPYVEXBFK8TM53":95},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":44,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M78K4FP1WASPYVEXBFK8TM53","configuring-oauth2-authorization-flow",null,"Configure secure OAuth 2.0 authorization flows including Authorization Code with PKCE, Client Credentials, and Device Authorization Grant. This skill covers flow selection, PKCE implementation, token","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconfiguring-oauth2-authorization-flow\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconfiguring-oauth2-authorization-flow\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: configuring-oauth2-authorization-flow\ndescription: Configure secure OAuth 2.0 authorization flows including Authorization Code with PKCE, Client Credentials, and Device Authorization Grant. This skill covers flow selection, PKCE implementation, token \ndomain: cybersecurity\nsubdomain: identity-access-management\ntags: [iam, identity, access-control, authentication, authorization, oauth2, oidc, pkce]\nversion: \"1.0\"\nauthor: mahipal\nlicense: Apache-2.0\n---\n# Configuring OAuth 2.0 Authorization Flow\n\n## Overview\nConfigure secure OAuth 2.0 authorization flows including Authorization Code with PKCE, Client Credentials, and Device Authorization Grant. This skill covers flow selection, PKCE implementation, token lifecycle management, scope design, and alignment with OAuth 2.1 security requirements.\n\n\n## When to Use\n\n- When deploying or configuring configuring oauth2 authorization flow capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Familiarity with identity access management concepts and tools\n- Access to a test or lab environment for safe execution\n- Python 3.8+ with required dependencies installed\n- Appropriate authorization for any testing activities\n\n## Objectives\n- Implement Authorization Code flow with PKCE for public and confidential clients\n- Configure Client Credentials flow for machine-to-machine communication\n- Design least-privilege scope hierarchies\n- Implement secure token storage, refresh, and revocation\n- Apply OAuth 2.1 best practices and RFC 9700 security recommendations\n- Validate token integrity and prevent common OAuth attacks\n\n## Key Concepts\n\n### OAuth 2.0 Grant Types\n1. **Authorization Code + PKCE**: Recommended for all client types (web, mobile, SPA). PKCE is mandatory in OAuth 2.1.\n2. **Client Credentials**: Machine-to-machine authentication without user context.\n3. **Device Authorization Grant (RFC 8628)**: For input-constrained devices (smart TVs, CLI tools).\n4. **Refresh Token**: Long-lived token to obtain new access tokens without re-authentication.\n\n### PKCE (Proof Key for Code Exchange)\nPKCE (RFC 7636) prevents authorization code interception attacks:\n1. Client generates random `code_verifier` (43-128 characters, unreserved URI chars)\n2. Client computes `code_challenge = BASE64URL(SHA256(code_verifier))`\n3. Authorization request includes `code_challenge` and `code_challenge_method=S256`\n4. Token request includes original `code_verifier`\n5. Server validates `SHA256(code_verifier)` matches stored `code_challenge`\n\n### Token Types\n- **Access Token**: Short-lived (5-60 min), bearer or DPoP-bound\n- **Refresh Token**: Long-lived, single-use with rotation\n- **ID Token (OIDC)**: JWT containing user identity claims\n\n## Workflow\n\n### Step 1: Authorization Code Flow with PKCE\n1. Generate cryptographically random code_verifier (min 43 chars)\n2. Compute code_challenge using S256 method\n3. Redirect user to authorization endpoint with parameters:\n   - response_type=code\n   - client_id, redirect_uri, scope, state\n   - code_challenge, code_challenge_method=S256\n4. User authenticates and consents\n5. Authorization server redirects with authorization code\n6. Exchange code + code_verifier for tokens at token endpoint\n7. Validate state parameter matches original value\n\n### Step 2: Scope Design\n- Define granular scopes: `read:users`, `write:orders`, `admin:settings`\n- Follow least-privilege: request minimum scopes needed\n- Implement scope validation on resource server\n- Document scope hierarchy and consent requirements\n\n### Step 3: Token Security\n- Store tokens securely (httpOnly cookies for web, keychain for mobile)\n- Implement token refresh with rotation (one-time-use refresh tokens)\n- Set appropriate expiration: access tokens 5-15 min, refresh tokens 8-24 hrs\n- Enable DPoP (Demonstration of Proof-of-Possession) for sender-constrained tokens\n- Implement token revocation endpoint\n\n### Step 4: Client Credentials Flow\n1. Register service client with client_id and client_secret\n2. Request token: POST \u002Foauth\u002Ftoken with grant_type=client_credentials\n3. Include scope for required permissions\n4. Store client_secret securely (vault, env vars, not code)\n5. Implement certificate-based client authentication for higher assurance\n\n### Step 5: Security Hardening\n- Enforce PKCE for all authorization code flows\n- Use exact redirect URI matching (no wildcards)\n- Implement CSRF protection with state parameter\n- Enable refresh token rotation and revocation on reuse detection\n- Apply RFC 9700 security best practices\n- Block implicit grant and ROPC (removed in OAuth 2.1)\n\n## Security Controls\n| Control | NIST 800-53 | Description |\n|---------|-------------|-------------|\n| Access Control | AC-3 | Token-based access enforcement |\n| Authentication | IA-5 | Client credential management |\n| Session Management | SC-23 | Token lifecycle management |\n| Audit | AU-3 | Log all token issuance and revocation |\n| Cryptographic Protection | SC-13 | PKCE and token signing |\n\n## Common Pitfalls\n- Using implicit grant (removed in OAuth 2.1) instead of authorization code + PKCE\n- Storing tokens in localStorage (XSS vulnerable) instead of httpOnly cookies\n- Not validating state parameter enabling CSRF attacks\n- Using wildcard redirect URIs allowing open redirect exploitation\n- Not implementing refresh token rotation allowing token theft persistence\n\n## Verification\n- [ ] Authorization Code + PKCE flow completes successfully\n- [ ] PKCE code_challenge validated at token endpoint\n- [ ] State parameter prevents CSRF\n- [ ] Access tokens expire within configured lifetime\n- [ ] Refresh token rotation issues new refresh token each use\n- [ ] Token revocation invalidates both access and refresh tokens\n- [ ] Client Credentials flow works for service-to-service calls\n- [ ] Scopes correctly enforced at resource server\n","# Configuring OAuth 2.0 Authorization Flow\n\n## Overview\nConfigure secure OAuth 2.0 authorization flows including Authorization Code with PKCE, Client Credentials, and Device Authorization Grant. This skill covers flow selection, PKCE implementation, token lifecycle management, scope design, and alignment with OAuth 2.1 security requirements.\n\n\n## When to Use\n\n- When deploying or configuring configuring oauth2 authorization flow capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Familiarity with identity access management concepts and tools\n- Access to a test or lab environment for safe execution\n- Python 3.8+ with required dependencies installed\n- Appropriate authorization for any testing activities\n\n## Objectives\n- Implement Authorization Code flow with PKCE for public and confidential clients\n- Configure Client Credentials flow for machine-to-machine communication\n- Design least-privilege scope hierarchies\n- Implement secure token storage, refresh, and revocation\n- Apply OAuth 2.1 best practices and RFC 9700 security recommendations\n- Validate token integrity and prevent common OAuth attacks\n\n## Key Concepts\n\n### OAuth 2.0 Grant Types\n1. **Authorization Code + PKCE**: Recommended for all client types (web, mobile, SPA). PKCE is mandatory in OAuth 2.1.\n2. **Client Credentials**: Machine-to-machine authentication without user context.\n3. **Device Authorization Grant (RFC 8628)**: For input-constrained devices (smart TVs, CLI tools).\n4. **Refresh Token**: Long-lived token to obtain new access tokens without re-authentication.\n\n### PKCE (Proof Key for Code Exchange)\nPKCE (RFC 7636) prevents authorization code interception attacks:\n1. Client generates random `code_verifier` (43-128 characters, unreserved URI chars)\n2. Client computes `code_challenge = BASE64URL(SHA256(code_verifier))`\n3. Authorization request includes `code_challenge` and `code_challenge_method=S256`\n4. Token request includes original `code_verifier`\n5. Server validates `SHA256(code_verifier)` matches stored `code_challenge`\n\n### Token Types\n- **Access Token**: Short-lived (5-60 min), bearer or DPoP-bound\n- **Refresh Token**: Long-lived, single-use with rotation\n- **ID Token (OIDC)**: JWT containing user identity claims\n\n## Workflow\n\n### Step 1: Authorization Code Flow with PKCE\n1. Generate cryptographically random code_verifier (min 43 chars)\n2. Compute code_challenge using S256 method\n3. Redirect user to authorization endpoint with parameters:\n   - response_type=code\n   - client_id, redirect_uri, scope, state\n   - code_challenge, code_challenge_method=S256\n4. User authenticates and consents\n5. Authorization server redirects with authorization code\n6. Exchange code + code_verifier for tokens at token endpoint\n7. Validate state parameter matches original value\n\n### Step 2: Scope Design\n- Define granular scopes: `read:users`, `write:orders`, `admin:settings`\n- Follow least-privilege: request minimum scopes needed\n- Implement scope validation on resource server\n- Document scope hierarchy and consent requirements\n\n### Step 3: Token Security\n- Store tokens securely (httpOnly cookies for web, keychain for mobile)\n- Implement token refresh with rotation (one-time-use refresh tokens)\n- Set appropriate expiration: access tokens 5-15 min, refresh tokens 8-24 hrs\n- Enable DPoP (Demonstration of Proof-of-Possession) for sender-constrained tokens\n- Implement token revocation endpoint\n\n### Step 4: Client Credentials Flow\n1. Register service client with client_id and client_secret\n2. Request token: POST \u002Foauth\u002Ftoken with grant_type=client_credentials\n3. Include scope for required permissions\n4. Store client_secret securely (vault, env vars, not code)\n5. Implement certificate-based client authentication for higher assurance\n\n### Step 5: Security Hardening\n- Enforce PKCE for all authorization code flows\n- Use exact redirect URI matching (no wildcards)\n- Implement CSRF protection with state parameter\n- Enable refresh token rotation and revocation on reuse detection\n- Apply RFC 9700 security best practices\n- Block implicit grant and ROPC (removed in OAuth 2.1)\n\n## Security Controls\n| Control | NIST 800-53 | Description |\n|---------|-------------|-------------|\n| Access Control | AC-3 | Token-based access enforcement |\n| Authentication | IA-5 | Client credential management |\n| Session Management | SC-23 | Token lifecycle management |\n| Audit | AU-3 | Log all token issuance and revocation |\n| Cryptographic Protection | SC-13 | PKCE and token signing |\n\n## Common Pitfalls\n- Using implicit grant (removed in OAuth 2.1) instead of authorization code + PKCE\n- Storing tokens in localStorage (XSS vulnerable) instead of httpOnly cookies\n- Not validating state parameter enabling CSRF attacks\n- Using wildcard redirect URIs allowing open redirect exploitation\n- Not implementing refresh token rotation allowing token theft persistence\n\n## Verification\n- [ ] Authorization Code + PKCE flow completes successfully\n- [ ] PKCE code_challenge validated at token endpoint\n- [ ] State parameter prevents CSRF\n- [ ] Access tokens expire within configured lifetime\n- [ ] Refresh token rotation issues new refresh token each use\n- [ ] Token revocation invalidates both access and refresh tokens\n- [ ] Client Credentials flow works for service-to-service calls\n- [ ] Scopes correctly enforced at resource server\n",{"name":5,"tags":25,"author":34,"domain":35,"license":15,"version":36,"subdomain":37,"description":7},[26,27,28,29,30,31,32,33],"iam","identity","access-control","authentication","authorization","oauth2","oidc","pkce","mahipal","cybersecurity","1.0","identity-access-management","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fconfiguring-oauth2-authorization-flow",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill configuring-oauth2-authorization-flow",{"tool":53,"command":54},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill configuring-oauth2-authorization-flow",{"tool":56,"command":57},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill configuring-oauth2-authorization-flow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconfiguring-oauth2-authorization-flow\u002FSKILL.md",true,[61,67,71,77,81,85,91],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"assets\u002Ftemplate.md","ASSET","资产文件",2818,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconfiguring-oauth2-authorization-flow\u002Fassets\u002Ftemplate.md",{"path":68,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fapi-reference.md","REFERENCE","参考文档",1572,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconfiguring-oauth2-authorization-flow\u002Freferences\u002Fapi-reference.md",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fstandards.md",2270,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconfiguring-oauth2-authorization-flow\u002Freferences\u002Fstandards.md",{"path":82,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fworkflows.md",5472,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconfiguring-oauth2-authorization-flow\u002Freferences\u002Fworkflows.md",{"path":86,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":89,"sourceHtmlUrl":90},"scripts\u002Fagent.py","SCRIPT","脚本",5518,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconfiguring-oauth2-authorization-flow\u002Fscripts\u002Fagent.py",{"path":92,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":93,"sourceHtmlUrl":94},"scripts\u002Fprocess.py",20408,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconfiguring-oauth2-authorization-flow\u002Fscripts\u002Fprocess.py",[96,104,111,118,125,133],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":20},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":20},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":20},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":20},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":129,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":20},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":20},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]