%@ page import="org.apache.hadoop.hive.hwi.*" %> <%@page errorPage="error_page.jsp" %> <% HWIAuth auth = (HWIAuth) session.getAttribute("auth"); if ( auth == null ){ auth = new HWIAuth(); auth.setUser(""); auth.setGroups( new String [] { "" }); session.setAttribute("auth", auth); } %> <% String user = request.getParameter("user"); String groups = request.getParameter("groups"); if (user != null){ auth.setUser(user); auth.setGroups( groups.split("\\s+") ); session.setAttribute("auth", auth); } %>
|
Change User Info<% if (request.getParameter("user")!=null){ %> Authorization is complete. <% } %> |