Skip to content

Instantly share code, notes, and snippets.

@authsec
Last active June 1, 2016 21:20
Show Gist options
  • Save authsec/d291b2527d3f39fe662a6272d9c4fbea to your computer and use it in GitHub Desktop.
Save authsec/d291b2527d3f39fe662a6272d9c4fbea to your computer and use it in GitHub Desktop.
Remap cid parameter to state
@PostConstruct
private void init() {
final HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
// This basically makes the state parameter the conversation id
final String state = request.getParameter("state");
httpConversationContext.deactivate();
httpConversationContext.activate(state);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment