Skip to content

Commit a2007eb

Browse files
rashmi43rwhundley
andauthored
[CD] - Merge SLO and saml callback urls (#1046)
* merge SLO and saml callback urls Signed-off-by: rashmi_kh <[email protected]> * update tests and run gofmt Signed-off-by: rashmi_kh <[email protected]> * Update routes_test.go --------- Signed-off-by: rashmi_kh <[email protected]> Co-authored-by: Robert W. Hundley <[email protected]>
1 parent ac91b01 commit a2007eb

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

controllers/operator/routes.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,11 @@ func (r *AuthenticationReconciler) getAllRoutesFields(authCR *operatorv1alpha1.A
270270
},
271271
"saml-ui-callback": {
272272
Annotations: map[string]string{
273-
"haproxy.router.openshift.io/balance": "source",
274-
"haproxy.router.openshift.io/rewrite-target": "/ibm/saml20/defaultSP/acs",
273+
"haproxy.router.openshift.io/balance": "source",
275274
},
276275
Name: "saml-ui-callback",
277276
RouteHost: routeHost,
278-
RoutePath: "/ibm/saml20/defaultSP/acs",
277+
RoutePath: "/ibm/saml20/defaultSP",
279278
RoutePort: 9443,
280279
ServiceName: PlatformAuthServiceName,
281280
DestinationCAcert: platformAuthCert,

controllers/operator/routes_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,12 +796,11 @@ var _ = Describe("Route handling", func() {
796796
Expect(route.Spec.TLS.DestinationCACertificate).To(Equal(string(platformAuthSecretSecret.Data["ca.crt"])))
797797
Expect(route.Annotations).To(HaveKeyWithValue("haproxy.router.openshift.io/balance", "source"))
798798
case "saml-ui-callback":
799-
Expect(route.Spec.Path).To(Equal("/ibm/saml20/defaultSP/acs"))
799+
Expect(route.Spec.Path).To(Equal("/ibm/saml20/defaultSP"))
800800
Expect(route.Spec.Port).To(Equal(&routev1.RoutePort{TargetPort: intstr.FromInt(9443)}))
801801
Expect(route.Spec.To.Name).To(Equal(PlatformAuthServiceName))
802802
Expect(route.Spec.TLS.DestinationCACertificate).To(Equal(string(platformAuthSecretSecret.Data["ca.crt"])))
803803
Expect(route.Annotations).To(HaveKeyWithValue("haproxy.router.openshift.io/balance", "source"))
804-
Expect(route.Annotations).To(HaveKeyWithValue("haproxy.router.openshift.io/rewrite-target", "/ibm/saml20/defaultSP/acs"))
805804
case "social-login-callback":
806805
Expect(route.Spec.Path).To(Equal("/ibm/api/social-login"))
807806
Expect(route.Spec.Port).To(Equal(&routev1.RoutePort{TargetPort: intstr.FromInt(9443)}))

0 commit comments

Comments
 (0)