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/saas-apps/sharepoint-on-premises-tutorial.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -348,17 +348,18 @@ $t.Update()
348
348
### Configure the lifetime of the security token
349
349
350
350
By default, Azure AD creates a SAML token that is valid for 1 hour.
351
-
This lifetime cannot be customized in the portal, or from a conditional access policy, but it is possible to create a [custom token lifetime policy](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-configurable-token-lifetimes) and apply it to the enterprise application created for SharePoint:
351
+
This lifetime cannot be customized in the Azure portal, or using a conditional access policy, but it can be done by creating a [custom token lifetime policy](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-configurable-token-lifetimes) and apply it to the enterprise application created for SharePoint.
352
+
To do this, complete the steps below using Windows PowerShell (at the time of this writing, AzureADPreview v2.0.2.149 does not work with PowerShell Core):
352
353
353
-
1.Using Windows PowerShell 5.1, install the module [AzureADPreview](https://www.powershellgallery.com/packages/AzureADPreview/):
354
+
1.Install the module [AzureADPreview](https://www.powershellgallery.com/packages/AzureADPreview/):
1. Then, run `Connect-AzureAD` to sign-in as a tenant administrator.
360
+
1. Run `Connect-AzureAD` to sign-in as a tenant administrator.
360
361
361
-
1. The sample script below updates the application `SharePoint corporate farm` to apply a token lifetime policy of 6h (value `06:00:00` of property `AccessTokenLifetime`) to it:
362
+
1. Run the sample script below to update the application `SharePoint corporate farm` to issue a SAML token valid for 6h (value `06:00:00` of property `AccessTokenLifetime`):
362
363
363
364
```powershell
364
365
$appDisplayName = "SharePoint corporate farm"
@@ -375,5 +376,5 @@ This lifetime cannot be customized in the portal, or from a conditional access p
0 commit comments