Revision 59495
Added by Katerina Iatropoulou over 3 years ago
PersonalTokenServlet.java | ||
---|---|---|
19 | 19 |
public void doGet(HttpServletRequest request, HttpServletResponse response) |
20 | 20 |
throws ServletException, IOException { |
21 | 21 |
response.setContentType("text/html"); |
22 |
PrintWriter printWriter = response.getWriter(); |
|
23 | 22 |
|
24 | 23 |
OIDCAuthenticationToken authentication = (OIDCAuthenticationToken) SecurityContextHolder.getContext().getAuthentication(); |
25 |
System.out.println(authentication); |
|
26 |
|
|
27 | 24 |
request.getSession().setAttribute("accessToken", authentication.getAccessTokenValue()); |
28 | 25 |
request.getSession().setAttribute("refreshToken", authentication.getRefreshTokenValue()); |
29 |
System.out.println("LALALLALLALALALA" + authentication.getAccessTokenValue()); |
|
30 | 26 |
|
31 | 27 |
request.getRequestDispatcher("./personal.jsp").include(request, response); |
32 | 28 |
} |
Also available in: Unified diff
Changed getAccessTokenFromRefreshToken to expect the refresh token as parameter. Added service registration pages and methods.