This repository was archived by the owner on Aug 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Siteslist, and select the Lithnet LAPS web site you created at installation time. - In the app setting pane, click
Authentication - Ensure
Anonymous authenticationis enabled, and all other options are disabled.
- Open the AFDS console, expand
Trust Relationships, right-clickRelying Part Trustsand selectAdd relying-party trust - Click
Nextand selectEnter data about the relying party manually - Specify
Lithnet LAPS Web Appas 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 Directoryas the attribute store,User-Principal-Nameas theLDAP AttributeandUPNas the outgoing claim type
- Open the
web.configfile in the root of the application folder. Ensure no otherowin:appStartupkey is present - Substitute the value for
ida:wtrealmwith the base URL of your application set in step 6 - Substitute the
afds.lithnet.localportion in theida:metadatafield 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" />