initializes AuthnResponse in process_authn_request_msg; it is necessary since
intermediary function may want to set status code. (fix a crasher bug when using isPassive and POST)
This commit is contained in:
parent
319d22b87e
commit
808afde754
|
@ -1207,6 +1207,12 @@ lasso_login_process_authn_request_msg(LassoLogin *login, const char *authn_reque
|
|||
}
|
||||
}
|
||||
|
||||
/* create LibAuthnResponse */
|
||||
LASSO_PROFILE(login)->response = lasso_lib_authn_response_new(
|
||||
LASSO_PROVIDER(LASSO_PROFILE(login)->server)->ProviderID,
|
||||
LASSO_LIB_AUTHN_REQUEST(LASSO_PROFILE(login)->request));
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -1596,11 +1602,6 @@ lasso_login_validate_request_msg(LassoLogin *login, gboolean authentication_resu
|
|||
|
||||
profile = LASSO_PROFILE(login);
|
||||
|
||||
/* create LibAuthnResponse */
|
||||
profile->response = lasso_lib_authn_response_new(
|
||||
LASSO_PROVIDER(profile->server)->ProviderID,
|
||||
LASSO_LIB_AUTHN_REQUEST(profile->request));
|
||||
|
||||
/* modify AuthnResponse StatusCode if user authentication is not OK */
|
||||
if (authentication_result == FALSE) {
|
||||
lasso_profile_set_response_status(profile,
|
||||
|
|
Loading…
Reference in New Issue