소스 정보
- 저장소
- AJBcoding/claude-skill-eval
- 최근 소스 활동
- 2025년 11월 18일 19:33
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 1
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/AJBcoding/claude-skill-eval --skill moai-security-identity명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Enterprise database architecture specialist with PostgreSQL 17, MySQL 8.4 LTS, MongoDB 8.0, Redis 7.4 expertise. Master connection pooling, query optimization, caching strategies, and database DevOps automation. Build scalable, resilient database systems with comprehensive monitoring and disaster recovery.
Enterprise Frontend Development with AI-powered modern architecture, Context7 integration, and intelligent component orchestration for scalable user interfaces
Enterprise-grade security expertise with production-ready patterns for OWASP Top 10 2021, zero-trust architecture, threat modeling (STRIDE, PASTA), secure SDLC, DevSecOps automation, cloud security, cryptography, identity & access management, and compliance frameworks (SOC 2, ISO 27001, GDPR, CCPA).
SOC 직업 분류 기준
SKILL.md 표시 중
| name | moai-security-identity |
| version | 4.0.0 |
| status | stable |
| description | Enterprise Skill for advanced development |
| allowed-tools | Read, Bash, WebSearch, WebFetch |
Enterprise SSO with SAML 2.0, OpenID Connect & OAuth 2.0
Trust Score: 9.9/10 | Version: 4.0.0 | Enterprise Mode | Last Updated: 2025-11-12
Identity and Access Management (IAM) for enterprise applications using SAML 2.0 for legacy systems and OpenID Connect (OIDC) for modern APIs. 2025 trend: 72% of enterprises now adopt multi-protocol SSO. This Skill covers SAML assertion validation, OIDC token processing, JWT verification, JIT provisioning, and SCIM 2.0 user synchronization.
When to use this Skill:
SAML 2.0 (XML-based, legacy enterprise):
├─ Protocol: XML assertions over HTTP POST/Redirect
├─ Use: Legacy web applications, B2B federation
├─ Complexity: Higher (XML parsing, certificates)
├─ Token Format: SAML Assertions (XML)
└─ Adoption: Enterprise (Salesforce, SharePoint, SAP)
OIDC (JSON-based, modern APIs):
├─ Protocol: Built on OAuth 2.0, REST APIs
├─ Use: Modern web/mobile apps, microservices
├─ Complexity: Lower (JSON, standard OAuth)
├─ Token Format: JWT (JSON Web Tokens)
└─ Adoption: Modern (mobile, SPA, APIs)
Best Practice (2025):
- Legacy B2B apps: SAML 2.0
- Modern APIs: OIDC
- Hybrid enterprises: Both (via federation)
1. User clicks "Login with Company SSO"
↓
2. Service Provider (SP) → Identity Provider (IdP)
Sends: AuthnRequest (signed, encrypted)
↓
3. User authenticates at IdP (username/password)
↓
4. IdP → Service Provider (SAML Response)
Contains: SAML Assertion (signed, encrypted)
├─ NameID (user identifier)
├─ Attributes (email, groups, roles)
└─ AuthnStatement (authentication confirmation)
↓
5. SP verifies signature, creates session
↓
6. User logged in to SP
1. User clicks "Login with Google"
↓
2. SPA → Authorization Server
Sends: authorization request (client_id, redirect_uri)
↓
3. User authenticates at Authorization Server
↓
4. Authorization Server → SPA (authorization code)
↓
5. SPA backend → Authorization Server (token exchange)
Sends: authorization code, client_secret
↓
6. Authorization Server → SPA backend
Returns: ID Token (JWT), Access Token, Refresh Token
↓
7. SPA backend creates session, user logged in
const passport = require('passport');
const { Strategy } = require('@node-saml/passport-saml');
const fs = require('fs');
const samlStrategy = new Strategy(
{
// Service Provider (our app) metadata
entryPoint: 'https://idp.example.com/sso', // IdP's SSO endpoint
issuer: 'https://ourapp.com',
callbackURL: 'https://ourapp.com/auth/saml/callback',
// Certificates for signature verification
cert: fs.readFileSync('./certs/idp-public.pem', 'utf-8'),
// Security settings
validateInResponseTo: true,
wantAssertionsSigned: true, // Require signed assertions
wantAuthnResponseSigned: true, // Require signed response
// Encryption
decryptionPvk: fs.readFileSync('./certs/sp-private.pem', 'utf-8'),
// Identifier format
identifierFormat: 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',
},
(profile, done) => {
// profile contains:
// - nameID: unique user identifier
.(, profile);
user = {
: profile.,
: profile..,
: profile..,
: profile.. || [],
};
(, user);
}
);
passport.(, samlStrategy);
app.(, passport.(, {
: ,
}));
app.(, {
passport.(, {
(err || !user) {
res.();
}
req.(user, {
(err) (err);
res.();
});
})(req, res, next);
});
app.(, {
metadata = samlStrategy.(
,
);
res.().(metadata);
});
app.(, {
(!req.) {
res.();
}
options = {
: ,
: ,
};
samlStrategy.(req, {
(err) res.().(err);
req.( {
(err) res.().(err);
res.(url);
});
});
});
const { Issuer } = require('openid-client');
const jwt = require('jsonwebtoken');
class OIDCValidator {
constructor(config) {
this.config = config;
this.issuer = null;
this.client = null;
this.jwks = null;
}
async initialize() {
// Discover OIDC provider configuration
this.issuer = await Issuer.discover(this.config.issuerUrl);
// Create client
this.client = new this.issuer.Client({
client_id: this.config.clientId,
client_secret: this.config.clientSecret,
redirect_uris: [this..],
: [],
});
response = ();
. = response.();
}
() {
decoded = jwt.(idToken, { : });
(!decoded) {
();
}
{ header, payload } = decoded;
jwk = ...( key. === header.);
(!jwk) {
();
}
publicKey = .(jwk);
{
verified = jwt.(idToken, publicKey, {
: [],
: ..,
: ..,
});
verified;
} (error) {
();
}
}
() {
decoded = jwt.(accessToken, { : });
(!decoded) {
();
}
{ payload } = decoded;
now = .(.() / );
(payload. <= now) {
();
}
(payload. !== ..) {
();
}
payload;
}
() {
}
}
oidcValidator = ({
: ,
: ,
: ,
: ,
});
oidcValidator.();
app.( {
authHeader = req..;
(!authHeader) {
res.().({ : });
}
token = authHeader.(, );
{
req. = oidcValidator.(token);
();
} (error) {
res.().({ : error. });
}
});
class SCIMUserProvisioner {
constructor(config) {
this.config = config;
}
// Handle SCIM provisioning webhook from IdP
handleScimWebhook(scimEvent) {
switch (scimEvent.resourceType) {
case 'User':
return this.handleUserEvent(scimEvent);
case 'Group':
return this.handleGroupEvent(scimEvent);
default:
throw new Error(`Unknown resource type: ${scimEvent.resourceType}`);
}
}
async handleUserEvent(event) {
const { externalId, attributes } = event;
switch (event.eventType) {
case 'user.created':
return this.createUser(attributes);
case 'user.updated':
return this.updateUser(externalId, attributes);
case 'user.deleted':
return this.(externalId);
:
();
}
}
() {
(!attributes. || !attributes.) {
();
}
user = db..({
: attributes.,
: attributes.,
: attributes.,
: attributes.,
: attributes.,
: attributes. ?? ,
: attributes. || [],
});
user;
}
() {
user = db..(externalId);
(!user) {
();
}
updated = db..(user., {
: attributes.,
: attributes.,
: attributes. || [],
});
updated;
}
() {
user = db..(externalId);
(!user) {
();
}
db..(user., { : });
{ : };
}
() {
}
}
app.(, (req, res) => {
{
(!(req)) {
res.().({ : });
}
provisioner = (config);
result = provisioner.(req.);
res.(result);
} (error) {
.(, error);
res.().({ : error. });
}
});
class JWTMiddleware {
constructor(publicKey) {
this.publicKey = publicKey;
}
middleware() {
return (req, res, next) => {
const authHeader = req.headers.authorization;
if (!authHeader || !authHeader.startsWith('Bearer ')) {
return res.status(401).json({ error: 'Missing token' });
}
const token = authHeader.slice(7); // Remove "Bearer "
try {
const payload = jwt.verify(token, this.publicKey, {
algorithms: ['RS256'],
});
req.user = {
id: payload.sub,
email: payload.email,
scope: payload.scope ? payload.scope.split(' ') : [],
};
next();
} catch (error) {
res.status(401).({ : });
}
};
}
}
jwtMiddleware = (publicKey);
app.(, jwtMiddleware.());
app.(, {
res.({
: ,
: req..,
});
});
const { Context7Client } = require('context7-mcp');
class IdentityThreatIntelligence {
constructor(apiKey) {
this.context7 = new Context7Client(apiKey);
}
// Check user identity against threat intelligence
async validateUserIdentity(user) {
const threats = await this.context7.query({
type: 'identity_threat',
email: user.email,
externalId: user.externalId,
tags: ['fraud', 'compromise', 'insider_threat'],
});
return {
safe: threats.severity === 0,
severity: threats.severity,
details: threats,
};
}
// Monitor provisioning events for anomalies
async analyzeProvisioningEvent(event) {
const analysis = await this.context7.query({
type: 'provisioning_anomaly',
: event.,
: event.,
: event.,
});
(analysis.) {
.(, analysis);
}
analysis;
}
}
| Feature | Implementation |
|---|---|
| SAML | @node-saml/passport-saml 3.2.4+ |
| OIDC | openid-client (npm) |
| JWT | jsonwebtoken (npm) |
| SCIM | Custom webhook handler |
| Monitoring | Context7 MCP |