Commit 35d3223d authored by 0Tyler's avatar 0Tyler

disable security constraint

parent 8001866e
...@@ -67,7 +67,7 @@ public class BeginMakeCredential extends HttpServlet { ...@@ -67,7 +67,7 @@ public class BeginMakeCredential extends HttpServlet {
/* Tyler start -----------------*/ /* Tyler start -----------------*/
UserProxyService userProxyService = UserProxyService.getInstance(); UserProxyService userProxyService = UserProxyService.getInstance();
String username = request.getParameter("username"); String username = request.getParameter("username");
userProxyService.setUser(new User(username, "gmail.com", userService.getCurrentUser().getUserId())); userProxyService.setUser(new User(username, "gmail.com"));
User user = userProxyService.getCurrentUser(); User user = userProxyService.getCurrentUser();
log.info("make" + user.toString()); log.info("make" + user.toString());
/* Tyler end -----------------*/ /* Tyler end -----------------*/
......
...@@ -35,7 +35,12 @@ public class Home extends HttpServlet { ...@@ -35,7 +35,12 @@ public class Home extends HttpServlet {
@Override @Override
protected void doGet(HttpServletRequest request, HttpServletResponse response) protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException { throws ServletException, IOException {
/* Tyler start -----------------*/
String nickname = "[email protected]";
/* Tyler end -----------------*/
/* Original code
String nickname = userService.getCurrentUser().getNickname(); String nickname = userService.getCurrentUser().getNickname();
*/
String logoutUrl = userService.createLogoutURL(request.getRequestURI()); String logoutUrl = userService.createLogoutURL(request.getRequestURI());
request.setAttribute("nickname", nickname); request.setAttribute("nickname", nickname);
......
...@@ -17,44 +17,44 @@ ...@@ -17,44 +17,44 @@
<listener-class>com.google.webauthn.gaedemo.server.OfyHelper</listener-class> <listener-class>com.google.webauthn.gaedemo.server.OfyHelper</listener-class>
</listener> </listener>
<security-constraint> <!-- <security-constraint>-->
<web-resource-collection> <!-- <web-resource-collection>-->
<web-resource-name>assetlinks</web-resource-name> <!-- <web-resource-name>assetlinks</web-resource-name>-->
<url-pattern>/.well-known/*</url-pattern> <!-- <url-pattern>/.well-known/*</url-pattern>-->
</web-resource-collection> <!-- </web-resource-collection>-->
<!-- OMIT auth-constraint --> <!-- &lt;!&ndash; OMIT auth-constraint &ndash;&gt;-->
</security-constraint> <!-- </security-constraint>-->
<security-constraint> <!-- <security-constraint>-->
<web-resource-collection> <!-- <web-resource-collection>-->
<web-resource-name>cron</web-resource-name> <!-- <web-resource-name>cron</web-resource-name>-->
<url-pattern>/DeleteOldSessions</url-pattern> <!-- <url-pattern>/DeleteOldSessions</url-pattern>-->
</web-resource-collection> <!-- </web-resource-collection>-->
<auth-constraint> <!-- <auth-constraint>-->
<role-name>admin</role-name> <!-- <role-name>admin</role-name>-->
</auth-constraint> <!-- </auth-constraint>-->
</security-constraint> <!-- </security-constraint>-->
<security-constraint> <!-- <security-constraint>-->
<web-resource-collection> <!-- <web-resource-collection>-->
<url-pattern>/_ah/api/*</url-pattern> <!-- <url-pattern>/_ah/api/*</url-pattern>-->
</web-resource-collection> <!-- </web-resource-collection>-->
<user-data-constraint> <!-- <user-data-constraint>-->
<transport-guarantee>CONFIDENTIAL</transport-guarantee> <!-- <transport-guarantee>CONFIDENTIAL</transport-guarantee>-->
</user-data-constraint> <!-- </user-data-constraint>-->
</security-constraint> <!-- </security-constraint>-->
<security-constraint> <!-- <security-constraint>-->
<web-resource-collection> <!-- <web-resource-collection>-->
<web-resource-name>all-others</web-resource-name> <!-- <web-resource-name>all-others</web-resource-name>-->
<url-pattern>/*</url-pattern> <!-- <url-pattern>/*</url-pattern>-->
</web-resource-collection> <!-- </web-resource-collection>-->
<auth-constraint> <!-- <auth-constraint>-->
<role-name>*</role-name> <!-- <role-name>*</role-name>-->
</auth-constraint> <!-- </auth-constraint>-->
<user-data-constraint> <!-- <user-data-constraint>-->
<transport-guarantee>CONFIDENTIAL</transport-guarantee> <!-- <transport-guarantee>CONFIDENTIAL</transport-guarantee>-->
</user-data-constraint> <!-- </user-data-constraint>-->
</security-constraint> <!-- </security-constraint>-->
<context-param> <context-param>
<param-name>name</param-name> <param-name>name</param-name>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment