Active Directory Federation Services prompt=login parameter support
The following document describes the native support for the prompt=login parameter that is available in AD FS.
What is prompt=login?
When applications need to request fresh authentication from Azure AD, meaning that they need Azure AD to re-authenticate the user even if the user has already been authenticated, they can send the
prompt=login parameter to Azure AD as part of the authentication request.
When this request is for a federated user, Azure AD needs to inform the IdP, like AD FS, that the request is for fresh authentication.
By default, Azure AD translates
wauth=https://schemas.microsoft.com/ws/2008/06/identity/authenticationmethod/password when sending this type of authentication requests to the federated IdP.
These parameters mean:
wfresh=0: do fresh authentication
wauth=https://schemas.microsoft.com/ws/2008/06/identity/authenticationmethod/password: use username/password for the fresh authentication request
This can cause problems with corporate intranet and multi-factor authentication scenarios in which an authentication type other than username and password, as requested by the
wauth parameter, is desired.
AD FS in Windows Server 2012 R2 with the July 2016 update rollup introduced native support for the
prompt=login parameter. This means that now Azure AD can send this parameter as-is to AD FS service as part of Azure AD and Office 365 authentication requests.
AD FS versions that support prompt=login
The following is a list of AD FS versions that support the
- AD FS in Windows Server 2012 R2 with the July 2016 update rollup
- AD FS in Windows Server 2016
How to configure a federated domain to send prompt=login to AD FS
Use the Azure AD PowerShell module to configure the setting.
prompt=login capability (enabled by the
PromptLoginBehavior property) is currently available only in the version 1.0 of the Azure AD Powershell module, in which the cmdlets have names that include “Msol”, such as Set-MsolDomainFederationSettings. It is not currently available via ‘version 2.0' of the Azure AD PowerShell module, whose cmdlets have names like “Set-AzureAD*”. This is a per domain setting. If you have multiple domains federated with one single federation, it is required to apply the changes for each of the domains desired.
- First obtain the current values of
PromptLoginBehaviorfor the federated domain by running the following PowerShell command:
Get-MsolDomainFederationSettings -DomainName <your_domain_name> | Format-List *
The output of
Get-MsolDomainFederationSettings by default does not display certain properties in the console. To view all the properties you should pipe (
|) its output to
Format-List * to force the output of all the properties of the object.
If the value of the property
PromptLoginBehavior is empty (
$null) the behavior of
TranslateToFreshPasswordAuth is used.
- Configure the desired value of
PromptLoginBehaviorby running the following command:
Set-MsolDomainFederationSettings –DomainName <your_domain_name> -PreferredAuthenticationProtocol <current_value_from_step1> -SupportsMfa <current_value_from_step1> -PromptLoginBehavior <TranslateToFreshPasswordAuth|NativeSupport|Disabled>
Following are the possible values of
PromptLoginBehavior parameter and their meaning:
- TranslateToFreshPasswordAuth: means the default Azure AD behavior of translating
- NativeSupport: means that the
prompt=loginparameter will be sent as is to AD FS. This is the recommended value if AD FS is in Windows Server 2012 R2 with the July 2016 update rollup or higher.
- Disabled: means that only
wfresh=0is sent to AD FS.
Odeslat a zobrazit názory pro