Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

How

...

do

...

I

...

logout

...

in

...

Sakai

...

so

...

that

...

DistAuth

...

cookies

...

are

...

deleted?

...

During

...

normal

...

logout

...

in

...

Sakai,

...

only

...

the

...

Sakai

...

session

...

information

...

is

...

cleared.

...

To

...

ensure

...

that

...

the

...

DistAuth

...

cookies

...

are

...

deleted

...

also,

...

one

...

must

...

modify

...

the

...

LoginTool.java

...

file

...

in

...

the

...

sakai-2-0-1-src\login\login\src\java\org\sakaiproject\tool\login

...

directory.

...

An

...

additional

...

parameter

...

can

...

be

...

added

...

to

...

the

...

sakai.properties

...

file

...

so

...

that

...

the

...

logout

...

url

...

is

...

correctly

...

referenced.

...

Steps

...

involved,

...

for

...

Sakai

...

2.1.x

...

  1. Apply

...

  1. the

...

  1. BasicConfigurationService

...

  1. patch

...

  1. that

...

  1. Jon

...

  1. G

...

  1. made,

...

  1. located

...

  1. at:

...

  1. https://mware.ucdavis.edu/svn/ucdsakai/branches/archive/sakai-2-1-x/legacy.diff

...


  1. to

...

  1. the

...

  1. root

...

  1. of

...

  1. sakai-src,

...

  1. so

...

  1. that

...

  1. the

...

  1. logout

...

  1. functionality

...

  1. will

...

  1. clear

...

  1. the

...

  1. cookies.

...

--Here

...

are

...

the

...

contents

...

of

...

that

...

patch

...

}
Code Block
Index: legacy/component/src/java/org/sakaiproject/component/framework/config/BasicConfigurationService.java
===================================================================
--- legacy/component/src/java/org/sakaiproject/component/framework/config/BasicConfigurationService.java	(revision 12171)
+++ legacy/component/src/java/org/sakaiproject/component/framework/config/BasicConfigurationService.java	(working copy)
@@ -28,6 +28,7 @@
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.InputStream;
+import java.text.MessageFormat;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
@@ -330,6 +331,9 @@
 		String rv = (String) m_properties.get("loggedOutUrl");
 		if (rv != null)
 		{
+			// Format the server URL into the string at location 0
+			rv = MessageFormat.format(rv, new Object[]{getServerUrl()});
+			
 			// if not a full URL, add the server to the front
 			if (rv.startsWith("/"))
 			{



{code}



# Have a value in your 
  1. Have a value in your sakai.properties

...

  1. of:
    Code Block
    
    loggedOutUrl=https://secureweb.ucdavis.edu/form-auth/logout?{0}/portal
    

...

  1. Add

...

  1. the

...

  1. following

...

  1. secureweb

...

  1. logout

...

  1. url

...

  1. value

...

  1. to

...

  1. the

...

  1. Tomcat/sakai/sakai.properties

...

  1. file:

...

This

...

logout

...

url

...

will

...

direct

...

Sakai

...

to

...

secureweb

...

to

...

logout

...

the

...

cookies

...

properly,

...

and

...

redirect

...

the

...

user

...

to

...

the

...

intended

...

url.