This repository has been archived by the owner on Aug 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Setting up authentication with Active Directory Federation Services
Ryan Newington edited this page Jul 7, 2018
·
3 revisions
The following guide will assist you in configuring your application to use Active Directory Federation Services (ADFS) for authentication.
- Open IIS Manager, expand the
Sites
list, and select the Lithnet LAPS web site you created at installation time. - In the app setting pane, click
Authentication
- Ensure
Anonymous authentication
is enabled, and all other options are disabled.
- Open the AFDS console, expand
Trust Relationships
, right-clickRelying Part Trusts
and selectAdd relying-party trust
- Click
Next
and selectEnter data about the relying party manually
- Specify
Lithnet LAPS Web App
as the display name - Select
AD FS profile
- Skip the encryption certificate step
- Check the box to
Enable support for the WS-Federation Passive protocol
. Specify the base URL where your Lithnet LAPS Web app is hosted (eg https://laps.lithnet.local/) - Skip the page prompting you to add additional relying party trust identifiers
- Optionally, configure multi-factor authentication for the trust, and follow the remaining pages through to completion
- Edit the claim rules for the application. Add a new issuance transform rule to
Send LDAP attributes as claims
- Set 'Issue UPN' as the claim rule name. Select
Active Directory
as the attribute store,User-Principal-Name
as theLDAP Attribute
andUPN
as the outgoing claim type
- Open the
web.config
file in the root of the application folder. Ensure no otherowin:appStartup
key is present - Substitute the value for
ida:wtrealm
with the base URL of your application set in step 6 - Substitute the
afds.lithnet.local
portion in theida:metadata
field with the hostname of your ADFS server
<add key="owin:appStartup" value="Lithnet.Laps.Web.Startup.ConfigureWsFederation" />
<add key="ida:wtrealm" value="https://laps.lithnet.local" />
<add key="ida:metadata" value="https://adfs.lithnet.local/FederationMetadata/2007-06/FederationMetadata.xml" />