Skip to content

Instantly share code, notes, and snippets.

@amadeobrands
Created April 5, 2017 08:05
Show Gist options
  • Select an option

  • Save amadeobrands/a132dcaa1eded687c39a847a9cc89c06 to your computer and use it in GitHub Desktop.

Select an option

Save amadeobrands/a132dcaa1eded687c39a847a9cc89c06 to your computer and use it in GitHub Desktop.
public class OpenIDHandler extends RequestHandler {
public enum ResponseType {
INTERNAL_SERVER_ERROR("Internal Server Error", IMxRuntimeResponse.INTERNAL_SERVER_ERROR),
UNAUTHORIZED("Unauthorized", IMxRuntimeResponse.UNAUTHORIZED);
String title;
int status;
ResponseType(String title, int httpStatus) {
this.title = title;
this.status = httpStatus;
}
}
public OpenIDHandler() {
if (!OPENID_ENABLED) {
log.info("NOT starting OpenId handler, disabled by configuration");
} else {
reconnectToMxID();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment