Stellar PHP SDK API Documentation

ContractChallengeValidationErrorInvalidWebAuthDomain extends ContractChallengeValidationError

Exception thrown when a contract challenge has an invalid web_auth_domain argument.

This exception is thrown when the web_auth_domain argument in the web_auth_verify function does not match the server's authentication domain (extracted from the auth endpoint URL). This validation ensures the challenge was issued by the expected authentication server.

Security Impact: High security check. An incorrect web_auth_domain could indicate the challenge was issued by a different server than expected, potentially part of a phishing or man-in-the-middle attack. Always verify the web_auth_domain matches the server.

Tags
see
https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0045.md

SEP-45 Challenge Validation

Table of Contents


        
On this page
  • Table Of Contents

Search results