diff options
author | Frederic Peters <fpeters@entrouvert.com> | 2005-01-27 11:08:15 +0000 |
---|---|---|
committer | Frederic Peters <fpeters@entrouvert.com> | 2005-01-27 11:08:15 +0000 |
commit | 9616ef0b32dd807c58cf999c1352968cb85bba4b (patch) | |
tree | 39b37e9ffb0dfc9afa2dc0cc609321e0f36454d8 /docs/lasso-book | |
parent | 640892cc83522ca1fe77a5ac977e4e162fb956f6 (diff) | |
download | lasso-9616ef0b32dd807c58cf999c1352968cb85bba4b.tar.gz lasso-9616ef0b32dd807c58cf999c1352968cb85bba4b.tar.xz lasso-9616ef0b32dd807c58cf999c1352968cb85bba4b.zip |
late 0.5 fixes to documentation
Diffstat (limited to 'docs/lasso-book')
-rw-r--r-- | docs/lasso-book/defederation.process | 4 | ||||
-rw-r--r-- | docs/lasso-book/single-logout.process | 60 |
2 files changed, 31 insertions, 33 deletions
diff --git a/docs/lasso-book/defederation.process b/docs/lasso-book/defederation.process index 14ac915c..842e7ecd 100644 --- a/docs/lasso-book/defederation.process +++ b/docs/lasso-book/defederation.process @@ -10,7 +10,7 @@ Federation Termination Notification lasso_defederation_process_notification_msg(defederation, query) nameIdentifier = LASSO_PROFILE(defederation)->nameIdentifier - # Retrieve session and user using name identifier. + # Retrieve session and user using name identifier (->content). lasso_profile_set_identity_from_dump(LASSO_PROFILE(defederation), identityDump) lasso_profile_set_session_from_dump(LASSO_PROFILE(defederation), sessionDump) @@ -50,7 +50,7 @@ Federation Termination Notification lasso_defederation_process_notification_msg(defederation, soapRequestMsg) nameIdentifier = LASSO_PROFILE(defederation)->nameIdentifier - # Retrieve session and user using name identifier. + # Retrieve session and user using name identifier (->content). lasso_defederation_validate_notification(defederation) # Close the federation locally. diff --git a/docs/lasso-book/single-logout.process b/docs/lasso-book/single-logout.process index c8842a27..95488b2e 100644 --- a/docs/lasso-book/single-logout.process +++ b/docs/lasso-book/single-logout.process @@ -3,8 +3,7 @@ Single Log Out /singleLogout (* normative, Single Logout Service URL *) logout = lasso_logout_new(server, lassoProviderTypeSp) - lasso_logout_process_request_msg(logout, /query string/) - IF error IS LASSO_PROFILE_ERROR_INVALID_QUERY + IF NOT lasso_is_liberty_query(query) # Logout initiated by SP, now lasso_profile_set_identity_from_dump(LASSO_PROFILE(logout), identity_dump) lasso_profile_set_session_from_dump(LASSO_PROFILE(logout), session_dump) @@ -33,44 +32,43 @@ Single Log Out DISPLAY HTML PAGE <h1>OK</h1> + END - ELIF NOT error - # Logout initiated by IdP - - # use LASSO_PROFILE(logout)->nameIdentifier to get identity and session - lasso_profile_set_identity_from_dump(LASSO_PROFILE(logout), identity_dump) - lasso_profile_set_session_from_dump(LASSO_PROFILE(logout), session_dump) - lasso_logout_validate_request(logout) - - IF lasso_profile_is_identity_dirty(LASSO_PROFILE(login)) - identity = lasso_profile_get_identity(LASSO_PROFILE(login)) - # save identity; - # serialization with lasso_identity_dump(identity) - - IF lasso_profile_is_session_dirty(LASSO_PROFILE(login)) - session = lasso_profile_get_session(LASSO_PROFILE(login)) - # save session; - # serialization with lasso_session_dump(session) - - lasso_logout_build_response_msg(logout) + # Logout initiated by IdP + lasso_logout_process_request_msg(logout, /query string/) - IF LASSO_PROFILE(logout)->msg_body - ANSWER SOAP REQUEST WITH: LASSO_PROFILE(logout)->msg_body) - ELSE - REDIRECT TO LASSO_PROFILE(logout)->msg_url + # use LASSO_PROFILE(logout)->nameIdentifier->content to get identity and session + lasso_profile_set_identity_from_dump(LASSO_PROFILE(logout), identity_dump) + lasso_profile_set_session_from_dump(LASSO_PROFILE(logout), session_dump) + lasso_logout_validate_request(logout) + + IF lasso_profile_is_identity_dirty(LASSO_PROFILE(login)) + identity = lasso_profile_get_identity(LASSO_PROFILE(login)) + # save identity; + # serialization with lasso_identity_dump(identity) + + IF lasso_profile_is_session_dirty(LASSO_PROFILE(login)) + session = lasso_profile_get_session(LASSO_PROFILE(login)) + # save session; + # serialization with lasso_session_dump(session) + + lasso_logout_build_response_msg(logout) + + IF LASSO_PROFILE(logout)->msg_body + ANSWER SOAP REQUEST WITH: LASSO_PROFILE(logout)->msg_body) + ELSE + REDIRECT TO LASSO_PROFILE(logout)->msg_url IdP /singleLogout (* normative, Single Log-Out service URL *) logout = lasso_logout_new(server, lassoProviderTypeIdp) - lasso_logout_process_request_msg(logout, /query string/) - IF error AND error IS NOT LASSO_PROFILE_ERROR_INVALID_QUERY - BOOM - IF error LASSO_PROFILE_ERROR_INVALID_QUERY + IF lasso_is_liberty_query(query) + lasso_logout_process_request_msg(logout, /query string/) + # get identity and session from LASSO_PROFILE(logout)->nameIdentifier + ELSE # initiate logout # get identity and session from user authentication - ELSE - # get identity and session from LASSO_PROFILE(logout)->nameIdentifier lasso_profile_set_identity_from_dump(LASSO_PROFILE(logout), identity_dump) lasso_profile_set_session_from_dump(LASSO_PROFILE(logout), session_dump) |