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 實體 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.