mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 09:03:21 +00:00 
			
		
		
		
	GUACAMOLE-204: Remove extension-specific URL parameter relocation.
This commit is contained in:
		| @@ -63,6 +63,11 @@ public class CASAuthenticationProvider implements AuthenticationProvider { | ||||
|         return "cas"; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public Object getResource() throws GuacamoleException { | ||||
|         return null; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public AuthenticatedUser authenticateUser(Credentials credentials) | ||||
|             throws GuacamoleException { | ||||
|   | ||||
| @@ -1,42 +0,0 @@ | ||||
| /* | ||||
|  * Licensed to the Apache Software Foundation (ASF) under one | ||||
|  * or more contributor license agreements.  See the NOTICE file | ||||
|  * distributed with this work for additional information | ||||
|  * regarding copyright ownership.  The ASF licenses this file | ||||
|  * to you under the Apache License, Version 2.0 (the | ||||
|  * "License"); you may not use this file except in compliance | ||||
|  * with the License.  You may obtain a copy of the License at | ||||
|  * | ||||
|  *   http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  * | ||||
|  * Unless required by applicable law or agreed to in writing, | ||||
|  * software distributed under the License is distributed on an | ||||
|  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||||
|  * KIND, either express or implied.  See the License for the | ||||
|  * specific language governing permissions and limitations | ||||
|  * under the License. | ||||
|  */ | ||||
|  | ||||
| /** | ||||
|  * Index module run block that looks for the ticket parameter | ||||
|  * on the current location and moves it to the correct | ||||
|  * place to get processed by the Angular app. | ||||
|  */ | ||||
| angular.module('index').run(['$injector', | ||||
|         function casIndexTicket($injector) { | ||||
|  | ||||
|     console.log('Running casIndexTicket...'); | ||||
|     var $window = $injector.get('$window'); | ||||
|     var curPath = $window.location.href; | ||||
|     var ticketPos = curPath.indexOf('?ticket='); | ||||
|     if (ticketPos < 0) | ||||
|         return null; | ||||
|     ticketPos += 8; | ||||
|     var hashPos = curPath.indexOf('#/'); | ||||
|     if (ticketPos < hashPos) { | ||||
|         var ticket = curPath.substring(ticketPos, hashPos); | ||||
|         var newPath = curPath.substring(0,ticketPos - 8) + '#/?ticket=' + ticket; | ||||
|         $window.location.href = newPath; | ||||
|     } | ||||
|  | ||||
| }]); | ||||
| @@ -12,8 +12,7 @@ | ||||
|     "js" : [ | ||||
|         "casModule.js", | ||||
|         "casController.js", | ||||
|         "casConfig.js", | ||||
|         "casIndexTicket.js" | ||||
|         "casConfig.js" | ||||
|     ] | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user