You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I had to debug SSO errors where users were seeing 500 errors because of some infra configuration errors, but debugging this was very difficult as I had to figure out and spend some time to get some logging setup.
The way I did was to add logging into X-ray with more details for the error from $saml->getLastErrorReason() and $saml->getLastErrorException()
returnnew \WP_Error( 'invalid-saml', sprintf( esc_html__( 'Error: Could not parse the authentication response, please forward this error to your administrator: "%s"', 'wp-simple-saml' ), esc_html( $e->getMessage() ) ) );
}
if ( ! empty( $saml->getErrors() ) ) {
$errors = implode( ', ', $saml->getErrors() );
/* translators: %s = error message */
returnnew \WP_Error( 'invalid-saml', sprintf( esc_html__( 'Error: Could not parse the authentication response, please forward this error to your administrator: "%s"', 'wp-simple-saml' ), esc_html( $errors ) ) );
I am thinking about how we can make it easier to debug this, One of the simplest solutions I am thinking of is to also trigger WordPress actions with related information and let the application code handle different logging?
The text was updated successfully, but these errors were encountered:
Recently I had to debug SSO errors where users were seeing 500 errors because of some infra configuration errors, but debugging this was very difficult as I had to figure out and spend some time to get some logging setup.
The way I did was to add logging into X-ray with more details for the error from
$saml->getLastErrorReason()
and$saml->getLastErrorException()
wp-simple-saml/inc/namespace.php
Lines 315 to 337 in 236a41b
I am thinking about how we can make it easier to debug this, One of the simplest solutions I am thinking of is to also trigger WordPress actions with related information and let the application code handle different logging?
The text was updated successfully, but these errors were encountered: