necouchman commented on a change in pull request #254:
URL: https://github.com/apache/guacamole-client/pull/254#discussion_r443242479



##########
File path: 
extensions/guacamole-auth-saml/src/main/resources/controllers/samlController.js
##########
@@ -0,0 +1,29 @@
+/*
+ * 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.
+ */
+
+/**
+ * Controller for the "GUAC_SAML_REDIRECT" field, which redirects
+ * to the provided URI.
+ */
+angular.module('guacSAML').controller('guacSAMLController', 
['$scope','$window',
+    function guacSAMLController($scope,$window) {
+
+    $window.location.href = $scope.field.samlRedirect;
+
+}]);

Review comment:
       Okay, I've opened a separate PR (#530) for the common redirect field 
implementation.  If/when that is merged I'll pull those changes out of this one 
and rebase this one on top, and then it should be ready for the final tweaks.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to