Use getSSOCookieFromSSOToken and logout

Apache 2.0

This recipe replaces LTPACookieFromSSOToken() with getSSOCookieFromSSOToken and revokeSSOCookies with logout. The two methods are deprecated in traditional WebSphere Application Server Version 8.5 and might be removed in a future release. They are not available on Liberty.

org.openrewrite.java.liberty.WebSphereUnavailableSSOMethods
mod run . --recipe=org.openrewrite.java.liberty.WebSphereUnavailableSSOMethods

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Replace revokeSSOCookies with logout
  2. Change method name com.ibm.websphere.security.WSSecurityHelper getLTPACookieFromSSOToken() to getSSOCookieFromSSOToken
  3. Change type WSSecurityHelper to WebSecurityHelper