Skip to content

Conversation

@sfc-gh-ext-simba-jy
Copy link
Collaborator

No description provided.

@sfc-gh-ext-simba-jy sfc-gh-ext-simba-jy marked this pull request as ready for review August 7, 2025 19:40
@sfc-gh-ext-simba-jy sfc-gh-ext-simba-jy requested a review from a team as a code owner August 7, 2025 19:40
{
CXX_LOG_WARN("sf::IAuthenticatorOKTA::authenticate::Fail to get one time token response, response body=%s.",
picojson::value(respData).serialize().c_str());
m_errMsg = "SFAuthenticatorVerificationFailed::authenticate::Fail to get one time token response.";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This hides real reason in m_idp->m_errMsg. Auth tests failed:

[2025-08-07T18:01:37.120Z] 78: [  ERROR   ] --- "SFAuthenticatorVerificationFailed::authenticate::Fail to get one time token response." != "Incorrect username or password was specified."
[2025-08-07T18:01:37.120Z] 78: [  FAILED  ] test_okta_wrong_credentials

and

[2025-08-07T18:01:58.084Z] 78: [  ERROR   ] --- strstr(error->msg, "SAML response is invalid or matching user is not found. Contact your local system administrator and provide the error code") != NULL
[2025-08-07T18:01:58.084Z] 78: [  FAILED  ] test_external_browser_wrong_credentials

{
IAuthenticatorOKTA::authenticate();
if ((m_connection->error).error_code == SF_STATUS_SUCCESS && (isError() || m_idp->isError()))
if (isError() || m_idp->isError())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe this hides real IDP error message?

continue;
}
CXX_LOG_ERROR("SF::IAuthenticatorOKTA::authenticate::Failed to get the saml response. response body=%s.", picojson::value(resp).serialize().c_str());
m_errMsg = "SFAuthenticatorVerificationFailed::authenticate::Failed to get the saml response.";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, m_idp->m_errMsg will be ignored if we set m_errMsg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants