Skip to content

817 structured cybersecurity skills for AI agents · Mapped to 6 frameworks: MITRE ATT&CK, NIST CSF 2.0, MITRE ATLAS, D3FEND, NIST AI RMF & MITRE F3 (Fight Fraud) · agentskills.io standard · Works with Claude Code, GitHub Copilot, Codex CLI, Cursor, Gemini CLI & 20+ platforms · 29 security domains · Apache 2.0

2.4 KB
Raw Blame

API Reference: Implementing Passwordless Auth with Microsoft Entra

Libraries

msal (Microsoft Authentication Library)

  • Install: pip install msal
  • Docs: https://msal-python.readthedocs.io/
  • ConfidentialClientApplication() -- App registration auth
  • acquire_token_for_client() -- Client credentials flow

Microsoft Graph API

Authentication Methods Policy API

Endpoint Description
GET /policies/authenticationMethodsPolicy Full auth methods config
GET /users/{id}/authentication/methods User's registered methods
GET /users/{id}/authentication/fido2Methods FIDO2 keys for user
GET /users/{id}/authentication/microsoftAuthenticatorMethods Authenticator setup
GET /users/{id}/authentication/windowsHelloForBusinessMethods WHfB status

Conditional Access API

Endpoint Description
GET /identity/conditionalAccess/policies List CA policies
GET /identity/conditionalAccess/authenticationStrength/policies Auth strength policies

Sign-In Logs API

Endpoint Description
GET /auditLogs/signIns Sign-in activity logs
Filter: authenticationDetails/any(a:a/authenticationMethod eq 'FIDO2 security key')

Authentication Method Types

  • fido2AuthenticationMethod -- FIDO2 security keys
  • microsoftAuthenticatorAuthenticationMethod -- Authenticator app
  • windowsHelloForBusinessAuthenticationMethod -- Windows Hello
  • passwordAuthenticationMethod -- Traditional password
  • phoneAuthenticationMethod -- SMS/phone call (legacy)
  • emailAuthenticationMethod -- Email OTP

Required Graph Permissions

  • UserAuthenticationMethod.Read.All
  • Policy.Read.All
  • AuditLog.Read.All
  • User.Read.All

External References