diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2005-10-04 08:06:36 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2005-10-04 08:06:36 +0000 |
| commit | d876cf4cc7296ae90cd908eb273c4d482ba061c6 (patch) | |
| tree | a2f918fbf60a391aa9108f0ae484740236795c5d | |
| parent | 036a066224fb7cd9ac0c7d15114eeec2057f9b1c (diff) | |
| download | lasso-d876cf4cc7296ae90cd908eb273c4d482ba061c6.tar.gz lasso-d876cf4cc7296ae90cd908eb273c4d482ba061c6.tar.xz lasso-d876cf4cc7296ae90cd908eb273c4d482ba061c6.zip | |
returns LASSO_LOGOUT_ERROR_REQUEST_DENIED if appropriate.
| -rw-r--r-- | lasso/errors.h | 1 | ||||
| -rw-r--r-- | lasso/id-ff/logout.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lasso/errors.h b/lasso/errors.h index 2681ff99..b1ad238d 100644 --- a/lasso/errors.h +++ b/lasso/errors.h @@ -58,6 +58,7 @@ /* Single Logout */ #define LASSO_LOGOUT_ERROR_UNSUPPORTED_PROFILE -301 +#define LASSO_LOGOUT_ERROR_REQUEST_DENIED 302 /* Profile */ #define LASSO_PROFILE_ERROR_INVALID_QUERY -401 diff --git a/lasso/id-ff/logout.c b/lasso/id-ff/logout.c index 3ddb8477..c9c3e078 100644 --- a/lasso/id-ff/logout.c +++ b/lasso/id-ff/logout.c @@ -622,6 +622,9 @@ lasso_logout_process_response_msg(LassoLogout *logout, gchar *response_msg) return LASSO_LOGOUT_ERROR_UNSUPPORTED_PROFILE; } + if (strcmp(statusCodeValue, LASSO_SAML_STATUS_CODE_REQUEST_DENIED) == 0) { + return LASSO_LOGOUT_ERROR_REQUEST_DENIED; + } message(G_LOG_LEVEL_CRITICAL, "Status code is not success : %s", statusCodeValue); return LASSO_ERROR_UNDEFINED; } |
