Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed SSO token rule and updated readme #6

Merged
merged 3 commits into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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