T28 implementing adfs and hybrid share point

90
Implementing ADFS and Hybrid SharePoint Thorbjørn Værp

description

European SharePoint Conference 2014 in Barcelona. Presentation Description: In this session we look at modern forms of authentication . We’ll cover Windows Server Active Directory Federation Services (ADFS) concepts and look at federation with SharePoint. There are a number of difficulties that you’ll need to overcome implementing SAML claims with SP, for example people picker, user profile import, problematic use of some SharePoint apps. We’ll also cover the infrastructure side like making it work with host named site collections, reverse proxy servers and other user directories. Moving to the cloud we’ll look at the authentication architecture of the standards employed; like OAUTH, WS-* and OpenID Connect. Presentation Benefit Get a better understanding of Windows Server Active Directory Federation Services (ADFS) concepts and SAML claims connection with SharePoint. You will learn... Understand authentication architecture and standards employed. ADFS concepts How to implement SAML claims

Transcript of T28 implementing adfs and hybrid share point

Page 1: T28   implementing adfs and hybrid share point

Implementing ADFS andHybrid SharePoint

Thorbjørn Værp

Page 2: T28   implementing adfs and hybrid share point

About me

Thorbjørn VærpPrincipal Consultant PuzzlepartKristiansand, Norwaywww.Sharepoint13.net | @vaerpn

Celebrating 21 years IT-pro, 11 of them in SPMCT | XVC

#ESPC14

Page 3: T28   implementing adfs and hybrid share point

Agenda

• History• Claims-based authentication• ADFS & SharePoint 2013

Page 4: T28   implementing adfs and hybrid share point

HISTORY

Page 5: T28   implementing adfs and hybrid share point

Lingo

Page 6: T28   implementing adfs and hybrid share point

A Web service is a method of communications between two electronic devices over a network. It is a software function provided at a network address over the web with the service always on as in the concept of utility computing.

Page 7: T28   implementing adfs and hybrid share point

An open standard for authenticationSimilar architecture to WS-*OpenID authentication used by PayPal, Google, VeriSign, Twitter +

Page 8: T28   implementing adfs and hybrid share point

An open standard for authorizationMethod for clients to access server resources on behalf of a resource ownerOauth has no signing or encryption (it relies only on ssl for opacity)Wide adoption, Facebook, Microsoft,Two version, 1.0 & 2.0 –no backwards compability.

Page 9: T28   implementing adfs and hybrid share point

Traditional authentication mechanisms

• Anonymous• Basic• NTLM / Kerberos (WIA)• Forms based AuthN

Cannot traverse

firewalls or p

roxies!!!

Page 10: T28   implementing adfs and hybrid share point

The problem with authentication

• Current technologies do not work well on the Internet (NTLM, Kerberos etc.)– Basic is the only authentication mechanism that was part of the

HTTP (1.0), all the others are bolted on• Several and different user stores (AD, LDAP, eDir)• Relies on your particular platform• Authentication had to be handled and understood by the

developers, whose time is better spent developing the application• Each new authentication scheme required chaning the code

Page 11: T28   implementing adfs and hybrid share point
Page 12: T28   implementing adfs and hybrid share point

Claims-based identity

Page 13: T28   implementing adfs and hybrid share point

What is claims-based identity?

• Abstraction layer (indirection)• A claim is an authoritative statement about a subject made by an

entity• A claim can be anything (not just security information) that can be

associated with a subject– Name | Age | Group membership | Role

• A claim is always associated with the entity that issued it• There are several claim standards • Claims are stored and transmitted in security tokens

Page 14: T28   implementing adfs and hybrid share point

What is claims based identity?

– XML or binary fragments constructed according to some security standard

– Digitally signed• There are several token formats• SAML (Security Assertion Markup Language) JWT (JSON

Web Token) SWT (Simple Web Token) • Claims based identity requires a trust model – Usually implemented with digital certificates

Page 15: T28   implementing adfs and hybrid share point

Claims in SharePoint 2013

3 types of claim providers

WindowsTrusted Provider (SAML)Forms Based AuthN

Multiple AuthN providers possible in the same zoneClassic mode only via PowerShell

Page 16: T28   implementing adfs and hybrid share point

Claims in SharePoint 2013

• SP 2013 has its own STS implementation• The SP 2013 Federation Metadata is in JSON, not XML• Both Classic authentication mode (WIA) and claims mode

(WIA/FBA/SAML) is supported, but claims is the default• In claims mode every form of AuthN is transformed to a

SAML token

Page 17: T28   implementing adfs and hybrid share point

SAML-based Claims in SP2013

Page 18: T28   implementing adfs and hybrid share point

Authentication process

Page 19: T28   implementing adfs and hybrid share point

Authentication process

Page 20: T28   implementing adfs and hybrid share point

Authentication process

Page 21: T28   implementing adfs and hybrid share point

Authentication process

Page 22: T28   implementing adfs and hybrid share point

Authentication process

Page 23: T28   implementing adfs and hybrid share point

Authentication process

Page 24: T28   implementing adfs and hybrid share point

Authentication process

Page 25: T28   implementing adfs and hybrid share point

ADFS & SharePoint 2013

Page 26: T28   implementing adfs and hybrid share point

Grocery list• 4 Public Certificates + (eg.RapidSSL)

• Fs3.vaerpn.com• Sp.vaerpn.com• Tokensign.vaerpn.com• Decrypt.vaerpn.com

• Reverse proxy, (WEP, F5, Netscaler, Azure Endpoints,)

• Update public DNS• Update internal DNS• ADFS server, one or more• SharePoint 2013

Page 27: T28   implementing adfs and hybrid share point

Step by Step The Environment• We got AD with a routable domain | vaerpn.com,

externaly registered.• Enterprise Admin access AD DS & available admin e-mail• SP 2013 with SQL server• Firewall/ReverseProxy or Azure• One or more Win2012 R2 domain joined servers to add

ADFS 3.0 Role

What to do:1.Get those Certificates, 2. Add ADFS Role, 3. Configure ADFS & Certificates 4. Configure Claim Rule, 5: Add RelayingParty Identifier, 6. Create & Connect SP Trusted Identity Provider

Page 28: T28   implementing adfs and hybrid share point

Certificates ToDo

Page 29: T28   implementing adfs and hybrid share point

1.Get those Certificates

Page 30: T28   implementing adfs and hybrid share point
Page 31: T28   implementing adfs and hybrid share point
Page 32: T28   implementing adfs and hybrid share point
Page 33: T28   implementing adfs and hybrid share point
Page 34: T28   implementing adfs and hybrid share point
Page 35: T28   implementing adfs and hybrid share point
Page 36: T28   implementing adfs and hybrid share point

Copy this C

ertificate to th

e ADFS server

Page 37: T28   implementing adfs and hybrid share point

Do this o

n the ADFS se

rver

Page 38: T28   implementing adfs and hybrid share point
Page 39: T28   implementing adfs and hybrid share point

Repeat until you have 4 certificatesadfs.vaerpn.com -> for ADFS service signing.vaerpn.com ->for token signingdecrypt.vaerpn.com ->for decrypt (not used by SP but a prereq)sp.vaerpn.com ->for SSL on SharePoint web app (one pr.web app)

Page 40: T28   implementing adfs and hybrid share point

Install ADFS

Page 41: T28   implementing adfs and hybrid share point

2. Add ADFS Role

Page 42: T28   implementing adfs and hybrid share point

2. Add ADFS Role

Page 43: T28   implementing adfs and hybrid share point

2. Add ADFS Role

Page 44: T28   implementing adfs and hybrid share point

2. Add ADFS Role

Page 45: T28   implementing adfs and hybrid share point

2. Add ADFS Role

Page 46: T28   implementing adfs and hybrid share point

Configure ADFS

Page 47: T28   implementing adfs and hybrid share point

3. Configure ADFS

Page 48: T28   implementing adfs and hybrid share point

3. Configure ADFS

Page 49: T28   implementing adfs and hybrid share point

3. Configure ADFS

Page 50: T28   implementing adfs and hybrid share point

3. Configure ADFS

Page 51: T28   implementing adfs and hybrid share point

3. Configure ADFS

Page 52: T28   implementing adfs and hybrid share point

3. Configure ADFS

Page 53: T28   implementing adfs and hybrid share point

3. Configure ADFS

Page 54: T28   implementing adfs and hybrid share point

3. Configure ADFS

Page 55: T28   implementing adfs and hybrid share point

3. Configure ADFS

Page 56: T28   implementing adfs and hybrid share point

3. Configure ADFS

Page 57: T28   implementing adfs and hybrid share point

3. Test A

DFS

Page 58: T28   implementing adfs and hybrid share point

Add Decrypting and signing certificates

3. Configure ADFS

Page 59: T28   implementing adfs and hybrid share point

3. Configure ADFS

Page 60: T28   implementing adfs and hybrid share point

3. Configure ADFS

Page 61: T28   implementing adfs and hybrid share point

Configure ClaimRule

Page 62: T28   implementing adfs and hybrid share point

4. Configure Claim

Rule

Page 63: T28   implementing adfs and hybrid share point

4. Configure Claim

Rule

Page 64: T28   implementing adfs and hybrid share point

AddRelayingParty

Identifier

Page 65: T28   implementing adfs and hybrid share point

5. Add Relaying Party

Identifier

Page 66: T28   implementing adfs and hybrid share point

5. Add Relaying Party

Identifier

Page 67: T28   implementing adfs and hybrid share point

5. Add Relaying Party

Identifier

Page 68: T28   implementing adfs and hybrid share point

5. Add Relaying Party

Identifier

Page 69: T28   implementing adfs and hybrid share point

5. Add Relaying Party

Identifier

Page 70: T28   implementing adfs and hybrid share point

5. Add Relaying Party

Identifier

Page 71: T28   implementing adfs and hybrid share point

5. Add Relaying Party

Identifier

Page 72: T28   implementing adfs and hybrid share point

5. Add Relaying Party

Identifier

Page 73: T28   implementing adfs and hybrid share point

5. Add Relaying Party

Identifier

Page 74: T28   implementing adfs and hybrid share point

5. Add Relaying Party

Identifier

Page 75: T28   implementing adfs and hybrid share point

5. Add Relaying Party

Identifier

Page 76: T28   implementing adfs and hybrid share point

Export the Token signing

certificate

Page 77: T28   implementing adfs and hybrid share point

Export the to

ken signing ce

rt

Page 78: T28   implementing adfs and hybrid share point

• Copy this to the SharePoint WFE

Export the to

ken signing ce

rt

Page 79: T28   implementing adfs and hybrid share point

Create & Connect SP

trusted Identity Provider

Do this o

n the SP W

FE server

Page 80: T28   implementing adfs and hybrid share point

6. Create & Connect S

P truste

d

Identity

Provider

Page 81: T28   implementing adfs and hybrid share point

-> Run this-> Check this

Page 82: T28   implementing adfs and hybrid share point

6. Create & Connect S

P truste

d

Identity

Provider

Page 83: T28   implementing adfs and hybrid share point

6. Create & Connect S

P truste

d

Identity

Provider

Page 84: T28   implementing adfs and hybrid share point

6. Create & Connect S

P truste

d

Identity

Provider

Page 85: T28   implementing adfs and hybrid share point

6. Create & Connect S

P truste

d

Identity

Provider

Page 86: T28   implementing adfs and hybrid share point

6. Create & Connect S

P truste

d

Identity

Provider

Page 87: T28   implementing adfs and hybrid share point

DemoWalk around & Customize

Page 88: T28   implementing adfs and hybrid share point

Wrap UpHistoryWS-*, OpenID, OpenAuth, David Wheeler "All problems in computer science can be solved by another level of indirection."

ClaimsA claim is an authoritative statement about a subject made by an entity. In claims mode every form of AuthN is transformed to a SAML token

ADFS & SharePoint 2013ADFS 3.0 no IIS. Always use public certificates, plan stuff, Must use PowerShell

Page 89: T28   implementing adfs and hybrid share point
Page 90: T28   implementing adfs and hybrid share point

Q&AThank You!

@vaerpn#ESPC14