GUACAMOLE-204: Inline String declaration for ticket variable.

This commit is contained in:
Nick Couchman authored and Nick Couchman committed 2017-05-17 08:54:21 -04:00
1 parent c293f04c1c
commit c591a58f93
1 file changed
+1 -3
@@ -79,12 +79,10 @@ public class AuthenticationProviderService {
public AuthenticatedUser authenticateUser(Credentials credentials)
throws GuacamoleException {
String ticket = null;
// Pull CAS ticket from request if present
HttpServletRequest request = credentials.getRequest();
if (request != null) {
ticket = request.getParameter(CASTicketField.PARAMETER_NAME);
String ticket = request.getParameter(CASTicketField.PARAMETER_NAME);
if (ticket != null) {
AuthenticatedUser authenticatedUser = authenticatedUserProvider.get();
authenticatedUser.init(ticketService.processUsername(ticket), credentials);