Identity Management (MOSC)

MOSC Banner

OAM: PluginResponse is null with REDIRECT_GET or REDIRECT_POST

edited Mar 7, 2013 10:41PM in Identity Management (MOSC) 2 commentsAnswered
Hi all,
I've written a custom authentication plugin that redirects the user to a custom page (JSP); this page displays some custom error messages read with:

String errorResponse = request.getParameter(GenericConstants.PLUGIN_ERROR_RESPONSE); 

The authentication plugin sends these custom messagges to the custom page, through PluginResponse:

context.addResponse(new PluginResponse("CustomError1",  "This error is the custom error 1", PluginAttributeContextType.ERROR));

To perform the redirect to the custom page, the authentication plugin sets the ExecutionStatus to "PAUSE" and sets the UserActionMetaData to one of three possible values: "FORWARD", "REDIRECT_GET", or "REDIRECT_POST":

final UserContextData urlContext = new UserContextData(myCustomPageURL, new CredentialMetaData("URL"));

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center