Skip to content

Commit

Permalink
Merge pull request openrewrite#6 from openrewrite/some-fixes
Browse files Browse the repository at this point in the history
Fixed SSO token rule and updated readme
  • Loading branch information
cjobinabo authored Aug 17, 2023
2 parents 36b881d + da0db97 commit 679583e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,13 @@ Recipes to migrate to the IBM WebSphere Liberty. Automatically
This project implements a [Rewrite module](https://github.com/openrewrite/rewrite) that performs common tasks when migrating to new version of [Open Liberty](https://openliberty.io/).

Browse [a selection of recipes available through this module in the recipe catalog](https://docs.openrewrite.org/recipes/liberty).

## How to use?

To get a curated list of recipes based on the migration issues present in your applications, consider downloading the [Migration Toolkit for Application Binaries](https://www.ibm.com/support/pages/node/6250913) and then running an analysis scan against your applications. Documentation on this scan and how to run it using the Migration Toolkit for Application Binaries can be found [here](https://www.ibm.com/docs/en/wamt?topic=binaries-detailed-migration-analysis-report). The report generated will contain the rewrite config necessary for your applications and their detected issues.

For more info on using OpenRewrite, see the full documentation at [docs.openrewrite.org](https://docs.openrewrite.org/).

## Contributing

We appreciate all types of contributions. See the [contributing guide](https://github.com/openrewrite/.github/blob/main/CONTRIBUTING.md) for detailed instructions on how to get started.
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/rewrite/was-to-liberty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ recipeList:
ignoreDefinition: true
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: com.ibm.websphere.security.WSSecurityHelper
newFullyQualifiedTypeName: com.ibm.websphere.security.web.WSSecurityHelper
newFullyQualifiedTypeName: com.ibm.websphere.security.web.WebSecurityHelper
ignoreDefinition: true
---
type: specs.openrewrite.org/v1beta/recipe
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ public void doX() {
}
""",
"""
import com.ibm.websphere.security.web.WSSecurityHelper;
import com.ibm.websphere.security.web.WebSecurityHelper;
import javax.servlet.http.Cookie;
public class Test {
public void doX() {
Cookie ltpaCookie = WSSecurityHelper.getSSOCookieFromSSOToken();
Cookie ltpaCookie = WebSecurityHelper.getSSOCookieFromSSOToken();
}
}
"""
Expand Down

0 comments on commit 679583e

Please sign in to comment.