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/active-directory/manage-apps/howto-saml-token-encryption.md
+29-8Lines changed: 29 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ ms.service: active-directory
8
8
ms.subservice: app-mgmt
9
9
ms.workload: identity
10
10
ms.topic: conceptual
11
-
ms.date: 07/21/2022
11
+
ms.date: 06/15/2023
12
12
ms.author: jomondi
13
13
ms.reviewer: alamaral
14
14
ms.collection: M365-identity-device-management
@@ -42,8 +42,8 @@ To configure enterprise application's SAML token encryption, follow these steps:
42
42
43
43
Create an asymmetric key pair to use for encryption. Or, if the application supplies a public key to use for encryption, follow the application's instructions to download the X.509 certificate.
44
44
45
-
The public key should be stored in an X.509 certificate file in .cer format.
46
-
45
+
The public key should be stored in an X.509 certificate file in .cer format. You can copy the contents of the certificate file to a text editor and save it as a .cer file. The certificate file should contain only the public key and not the private key.
46
+
47
47
If the application uses a key that you create for your instance, follow the instructions provided by your application for installing the private key that the application will use to decrypt tokens from your Azure AD tenant.
48
48
49
49
1. Add the certificate to the application configuration in Azure AD.
@@ -54,7 +54,9 @@ You can add the public cert to your application configuration within the Azure p
54
54
55
55
1. Go to the [Azure portal](https://portal.azure.com).
56
56
57
-
1. Go to the **Azure Active Directory > Enterprise applications** blade and then select the application that you wish to configure token encryption for.
57
+
1. Search for and select the **Azure Active Directory**.
58
+
59
+
1. Select **Enterprise applications** blade and then select the application that you wish to configure token encryption for.
58
60
59
61
1. On the application's page, select **Token encryption**.
60
62
@@ -101,8 +103,6 @@ To configure token encryption, follow these steps:
101
103
102
104
1. In the application's page, select **Manifest** to edit the [application manifest](../develop/reference-app-manifest.md).
103
105
104
-
1. Set the value for the `tokenEncryptionKeyId` attribute.
105
-
106
106
The following example shows an application manifest configured with two encryption certificates, and with the second selected as the active one using the tokenEncryptionKeyId.
107
107
108
108
```json
@@ -172,7 +172,7 @@ To configure token encryption, follow these steps:
172
172
}
173
173
```
174
174
175
-
# [PowerShell](#tab/azure-powershell)
175
+
# [Azure AD PowerShell](#tab/azuread-powershell)
176
176
177
177
1. Use the latest Azure AD PowerShell module to connect to your tenant.
178
178
@@ -190,7 +190,29 @@ To configure token encryption, follow these steps:
1. Use the Microsoft Graph PowerShell module to connect to your tenant.
196
+
197
+
1. Set the token encryption settings using the **[Update-MgApplication](/powershell/module/microsoft.graph.applications/update-mgapplication?view=graph-powershell-1.0&preserve-view=true)** command.
1. Update the application's `keyCredentials` with an X.509 certificate for encryption. The following example shows a Microsoft Graph JSON payload with a collection of key credentials associated with the application.
@@ -221,7 +243,6 @@ To configure token encryption, follow these steps:
221
243
222
244
---
223
245
224
-
225
246
## Next steps
226
247
227
248
* Find out [How Azure AD uses the SAML protocol](../develop/active-directory-saml-protocol-reference.md)
0 commit comments