SAML 检查器
Client-side onlyPaste a Base64 SAML response or raw XML to inspect issuers, subjects, attributes, and validity windows instantly—no network requests.
- Redirect & POST aware
Parsing error
—
SAML Flow
1. User requests resource → 2. SP sends AuthnRequest to IdP → 3. IdP authenticates user → 4. IdP sends Response with Assertion → 5. SP grants access
Key Elements
| Element | Purpose |
|---|---|
AuthnRequest | SP → IdP login request |
Response | IdP → SP with assertions |
Assertion | Claims about the user |
NameID | User identifier |
Attribute | User properties (email, role) |
什么是 SAML?
安全断言标记语言(SAML)是一种基于 XML 的开放标准,用于在各方之间交换身份验证和授权数据,特别是在身份提供方(IdP)与服务提供方(SP)之间。SAML 是许多企业单点登录(SSO)解决方案的核心,让用户可以使用一套凭据访问多个应用程序。最常用的版本是 SAML 2.0,它使用包含断言的安全令牌,在 IdP 与 SP 之间传递关于主体的信息。
如何使用此工具
将 Base64 编码的 SAMLResponse 或原始 XML 粘贴到输入框中。如果要解码 Redirect 绑定的载荷,请切换“尝试解压”选项。点击解码响应以解析消息。在快速摘要中查看签发者、主题和有效性状态。在属性表中查看解码后的用户属性。使用标签页查看格式化 XML、断言详情,或声明的 JSON 表示形式。
常见使用场景
SSO 故障排查,通过检查断言是否过期或受众是否不匹配来诊断用户无法登录的原因。集成测试,验证您的身份提供方是否发送了正确的属性。安全审计,检查原始 XML 以确保断言已正确签名。开发调试,在服务提供方集成过程中快速查看 SAML 消息的内容。
专业提示
通过 HTTP-Redirect 发送的 SAML 消息通常会先经过 deflate 压缩,再进行 Base64 编码——如果解码失败,请尝试切换“尝试解压”复选框。请确保 AudienceRestriction 与您的 SP Entity ID 匹配。如果响应被标记为无效,请检查 NotBefore 和 NotOnOrAfter 时间,看看 IdP 与 SP 时钟之间是否存在时间偏差。
Related Tools
Token Cryptography Suite
Inspect, generate, and manage JWT tokens and cryptographic keys.
X.509 Certificate Inspector
Parse X.509 certificates and CSRs.
Encoding & Decoding Workbench
Encode, decode, hash, and identify data transformations.
Email Security Analyzer
Analyze raw emails for SPF/DKIM/DMARC, routing hops, and embedded URLs.