You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/spring-apps/how-to-configure-enterprise-spring-cloud-gateway.md
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ To assign an endpoint in the Azure portal, use the following steps:
56
56
57
57
After a few minutes, **URL** shows the configured endpoint URL. Save the URL to use later.
58
58
59
-
:::image type="content" source="media/how-to-configure-enterprise-spring-cloud-gateway/gateway-overview.png" alt-text="Screenshot of Azure portal showing the Spring Cloud Gateway overview page for an Azure Spring Apps instance with the Assign endpoint buttons highlighted and the configured endpoint URL displayed." lightbox="media/how-to-configure-enterprise-spring-cloud-gateway/gateway-overview.png":::
59
+
:::image type="content" source="media/how-to-configure-enterprise-spring-cloud-gateway/gateway-overview.png" alt-text="Screenshot of Azure portal showing the Spring Cloud Gateway overview page for an Azure Spring Apps instance. The Assign endpoint buttons are highlighted and the configured endpoint URL is displayed." lightbox="media/how-to-configure-enterprise-spring-cloud-gateway/gateway-overview.png":::
60
60
61
61
#### [Azure CLI](#tab/Azure-CLI)
62
62
@@ -96,7 +96,7 @@ To edit metadata in the Azure portal, do these steps:
96
96
1. Specify values for the properties listed for **API**.
97
97
1. Select **Save**.
98
98
99
-
:::image type="content" source="media/how-to-configure-enterprise-spring-cloud-gateway/gateway-configuration.png" alt-text="Screenshot of Azure portal showing the Spring Cloud Gateway configuration page for an Azure Spring Apps instance with the API section highlighted." lightbox="media/how-to-configure-enterprise-spring-cloud-gateway/gateway-configuration.png":::
99
+
:::image type="content" source="media/how-to-configure-enterprise-spring-cloud-gateway/gateway-configuration.png" alt-text="Screenshot of Azure portal showing the Spring Cloud Gateway configuration page for an Azure Spring Apps instance, with the API section highlighted." lightbox="media/how-to-configure-enterprise-spring-cloud-gateway/gateway-configuration.png":::
100
100
101
101
#### [Azure CLI](#tab/Azure-CLI)
102
102
@@ -182,7 +182,7 @@ The following steps describe an example of how to implement the function in your
182
182
183
183
### Log out just the SSO session
184
184
185
-
If you send the `GET` request to the `/scg-logout` endpoint using a `XMLHttpRequest` (XHR), then the `302` redirect could be swallowed and not handled in the response handler. In this case, the user would only be logged out of the SSO session on the gateway service instance and would still have a valid IdP session. The behavior typically seen in this case is that if the user attempts to log in again, they're automatically sent back to the gateway as authenticated from IdP.
185
+
If you send the `GET` request to the `/scg-logout` endpoint using a `XMLHttpRequest` (XHR), then the `302` redirect could be swallowed and not handled in the response handler. In this case, the user would only be logged out of the SSO session on the gateway service instance and would still have a valid IdP session. The behavior typically seen is that if the user attempts to log in again, they're automatically sent back to the gateway as authenticated from IdP.
186
186
187
187
You need to have a route configuration to route the logout request to your application, as shown in the following example. This code makes a gateway-only logout SSO session.
188
188
@@ -356,26 +356,34 @@ You can now test whether the application is TLS enabled with the endpoint of the
356
356
357
357
### Rotate certificates
358
358
359
-
As certificates expire, new ones need to be generated and synchronized (rotation).You can use the Azure portal or AzureCLI to synchronize certificates.
359
+
As certificates expire, you need to rotate certificates in SpringCloudGateway using the following procedure:
360
+
361
+
-Generatenew certificates from a trusted CA.
362
+
- Import the certificates into AzureSpringApps. For more information, see the [Import a certificate](how-to-use-tls-certificate.md#import-a-certificate) section of [UseTLS/SSL certificates in your application in AzureSpringApps](how-to-use-tls-certificate.md).
363
+
-Synchronize the certificates, using the Azure portal or the AzureCLI.
364
+
365
+
The gateway automatically restarts to ensure that the gateway uses the new certificate for all connections.
360
366
361
367
#### [Azure portal](#tab/Azure-portal)
362
368
363
-
Use the following steps to rotate and synchronize certificates.
369
+
Use the following steps to synchronize certificates.
364
370
365
371
1.In your AzureSpringApps instance, select **SpringCloudGateway** in the navigation pane.
366
372
1.On the **SpringCloudGateway** page, select **Certificate management**.
367
-
1.Select the newcertificate in **Certificates**.
373
+
1.Select the certificate you imported in **Certificates**.
368
374
1.Select**sync certificate**.
369
375
1.Select**Save**.
370
376
371
-
:::image type="content" source="media/how-to-configure-enterprise-spring-cloud-gateway/gateway-sync-certificate.png" alt-text="Screenshot of the Azure portal showing the Spring Cloud Gateway page for an Azure Spring Apps instance with Certificate Management selected and the prompt to sync the certificate highlighted." lightbox="media/how-to-configure-enterprise-spring-cloud-gateway/gateway-sync-certificate.png":::
377
+
:::image type="content" source="media/how-to-configure-enterprise-spring-cloud-gateway/gateway-sync-certificate.png" alt-text="Screenshot of the Azure portal showing the Spring Cloud Gateway page for an Azure Spring Apps instance, with Certificate Management selected and the prompt to sync the certificate highlighted." lightbox="media/how-to-configure-enterprise-spring-cloud-gateway/gateway-sync-certificate.png":::
372
378
373
379
#### [AzureCLI](#tab/Azure-CLI)
374
380
375
-
Use the following command to synchronize a certificate.
381
+
Use the following command to synchronize a certificateforSpringCloudGateway.
0 commit comments