SlideShare a Scribd company logo
Extending Authentication and
Authorization
Edin Kapić
Edin Kapić
• SharePoint Senior Architect &
Team Lead in Sogeti,
Barcelona
• President of SharePoint User
Group Catalonia (SUG.CAT)
• Writer at Pluralsight
• SharePoint Server Office
Servers and Services MVP
• Tinker & geek
Email : mail@edinkapic.com
Twitter : @ekapic
LinkedIn : edinkapic
Agenda
• SharePoint, Authentication and Authorization
• Claims
• Claims-based Authentication
• Claims-based Authorization
• Claims Augmentation and Transformation
• Claims Providers
• Federated Authentication
SharePoint, Authentication & Authorization
SharePoint Web App
Authentication
Provider
SPUser
Site Collection
Site
SPRoleAssignment
Authentication
Authorization
SharePoint Authentication
• SharePoint doesn’t authenticate by
itself
• It keeps user details in the user
profile database and user
information lists in each site
collection
SharePoint Authorization
• Associated with principals
• Authenticated users
• Groups (SharePoint or AD)
• Claims
• App Add-in identities
SharePoint 2013 Authentication Options
• “Classic” Windows
• Deprecated
• Claims-based
• Windows tokens
• FBA
• SAML 1.1
Windows NTLM Token
Windows NTLM Token
FBA User
SAML 1.1 Token
SAML Token
SPUser
App Add-In Authentication
• Add-ins have identity and can be assigned permissions
• Add-ins are principals, together with users and groups
• Add-in identity vs User identity
• Add-ins use OAuth to authenticate
• Low-trust add-ins use 3-legged OAuth (with ACS broker)
• High-trust add-ins use self-signed tokens
Claims
• A claim is a piece of your identity, claimed by some authority
• Claims are received upon presenting credentials to a claims provider
• Claims providers are trusted
• Examples
• Employee badge
• Name, department, clearance
• Boarding passes
• Flight, seat, class, name
• Paper Wristbands
• Ticket type, extra services
Real-world Claims
Identity Claims
Specific Claims
Claims encoded and signed
Thanks to Spencer Harbar for the original idea
SharePoint Claims
Claim Type Claim Value Issuer Original Issuer
http://schemas.xmlsoap.org
/ws/2005/05/identity/claim
s/nameidentifier
demoekapic SharePoint SharePoint
http://schemas.xmlsoap.org
/ws/2008/06/identity/claim
s/primarysid
S-1-5-21-4067827123-
213488314-8760374-
513
SharePoint Windows
http://schemas.xmlsoap.org
/ws/2005/05identity/claims
/upn
ekapic@demo.local SharePoint Windows
http://schemas.microsoft.co
m/sharepoint/2009/08/clai
ms/userid
0#.w|demoekapic SharePoint SecurityTokenService
Claims Authentication
• SharePoint augments and transforms the incoming claims to a
normalized claims identity
• Can be done by more than one claims provider
• Decouples the authentication method from the user identity
• For Windows incoming claims, there is a C2WTS (Claims to Windows
Token Service) inside SharePoint 2013 to allow converting claims back
into Windows identities
Claims Authorization
• Any claim can be used as a
security principal in SharePoint
• Flexible alternative to security
groups
• Claims can be surfaced by the
identity token service or custom
claims provider in People Picker
Claim Providers
• Augment and surface the claims for People Picker
• Can be generic or bound to a Trusted Identity Provider
• Inherits from SPClaimProvider abstract class
Claims Augmentation and Surfacing
Desired claim provider feature Implements
Claims augmentation FillClaimsForEntity
SupportsEntityInformation
Claims surfacing in People Picker FillSchema
FillClaimTypes
FillClaimValueTypes
FillEntityTypes
Claims hierarchy in People Picker left side FillHierarchy
SupportsHierarchy
Resolving typed claims in People Picker FillResolve
SupportsResolve
Searching for claims in People Picker FillSearch
SupportsSearch
DEMO
Custom Claim Provider
Federated Authentication
• When the identity provider (IdP) is distinct from Windows (or FBA),
we have federated authentication
• Third-party Secure Token Service (STS) issues a security token with
claims
• This token is trusted by “clients” (Relying Parties, RP) as the STS is
trusted by them
• Tokens are digitally signed
Federated Authentication
• ID cards or passports are
real-world examples of
federated authentication
Federated Identity Providers
• Microsoft Active Directory Federation
Services (ADFS)
• Microsoft Azure Active Directory
• Thinktecture IdentityServer
• Shibboleth
• IBM Federated Identity Manager
• ...
Active Directory Federation Services (ADFS)
• Part of Windows Server
features
• Can transform AD into a
federated IdP
• Doesn’t manage users
directly, but claims,
identity providers and
relying parties
Azure Active Directory (AAD)
• “AD and ADFS in the cloud”
• Part of Azure / Office 365 offering
• Underpins the most of the Office
365 / Azure hybrid architectures
Thinktecture IdentityServer
• Open-source IdP based on .NET and Windows Identity Framework
• Modular architecture
DEMO
Federated Authentication with
ADFS
Summary
• Claims-based identity and authorization are the only way forward, so
make sure that you understand them well
• You can decouple user authentication from the user identity
• You can extend your user identity with additional claims
• You can get your user identity from somewhere else
Further Reading
• Steve Peschka’s blog https://samlman.wordpress.com
• Kirk Evans’ blog http://blogs.msdn.com/b/kaevans/
• A Guide to Claims-Identity and Access Control
https://msdn.microsoft.com/en-us/library/ff423674.aspx
Thank you!
Tack så mycket!

More Related Content

PPTX
High-Trust Add-Ins SharePoint for On-Premises Development
PPTX
SPS London 2015 - IoT and Room Reservation Cloud-Style
PPTX
Office 365 api vs share point app model
PPTX
SPS Belgium 2015 - High-trust Apps for On-Premises Development
PPTX
SharePoint, ADFS and Claims Auth
PPTX
T28 implementing adfs and hybrid share point
PPTX
Claims Based Authentication A Beginners Guide
PPTX
OAuth in SharePoint 2013
High-Trust Add-Ins SharePoint for On-Premises Development
SPS London 2015 - IoT and Room Reservation Cloud-Style
Office 365 api vs share point app model
SPS Belgium 2015 - High-trust Apps for On-Premises Development
SharePoint, ADFS and Claims Auth
T28 implementing adfs and hybrid share point
Claims Based Authentication A Beginners Guide
OAuth in SharePoint 2013

What's hot (19)

PPTX
DD109 Claims Based AuthN in SharePoint 2010
PPTX
The bits and pieces of Azure AD B2C
PPTX
SharePoint 2013 APIs demystified
PPTX
Easy Auth Overview - Tokyo Azure Meetup - Feb 2018
PPTX
A Developer's Introduction to Azure Active Directory B2C
PPTX
Understanding SharePoint Apps, authentication and authorization infrastructur...
PPTX
Oauth and SharePoint 2013 Provider Hosted apps
PPTX
DevSum: Azure AD B2C Application security made easy
PPTX
Dear Azure: External collaboration with Azure AD B2B
PDF
O365Con18 - External Collaboration with Azure B2B - Sjoukje Zaal
PPTX
Intelligent Cloud Conference: Azure AD B2C Application security made easy
PPTX
Microsoft identity manoj mittal
PPTX
AD FS Workshop | Part 2 | Deep Dive
PPTX
Identity Management in SharePoint 2013
PPTX
The Who, What, Why and How of Active Directory Federation Services (AD FS)
PPTX
Azure B2C
PPTX
Azure Saturday: External Collaboration With Azure AD B2B
PPTX
SharePoint 2013 and ADFS
PPTX
Extending SharePoint 2010 to your customers and partners
DD109 Claims Based AuthN in SharePoint 2010
The bits and pieces of Azure AD B2C
SharePoint 2013 APIs demystified
Easy Auth Overview - Tokyo Azure Meetup - Feb 2018
A Developer's Introduction to Azure Active Directory B2C
Understanding SharePoint Apps, authentication and authorization infrastructur...
Oauth and SharePoint 2013 Provider Hosted apps
DevSum: Azure AD B2C Application security made easy
Dear Azure: External collaboration with Azure AD B2B
O365Con18 - External Collaboration with Azure B2B - Sjoukje Zaal
Intelligent Cloud Conference: Azure AD B2C Application security made easy
Microsoft identity manoj mittal
AD FS Workshop | Part 2 | Deep Dive
Identity Management in SharePoint 2013
The Who, What, Why and How of Active Directory Federation Services (AD FS)
Azure B2C
Azure Saturday: External Collaboration With Azure AD B2B
SharePoint 2013 and ADFS
Extending SharePoint 2010 to your customers and partners
Ad

Similar to ESPC15 - Extending Authentication and Authorization (20)

PPTX
Extending Authentication and Authorization
PDF
Envision it SharePoint Extranet Webinar Series - Federation and SharePoint On...
PPTX
SharePoint Saturday Utah - Do you claim to be from the Azure Sky?
PPTX
Claim Based Authentication in SharePoint 2010 for Community Day 2011
PDF
Envision it SharePoint Extranet Webinar Series - Federation and Office 365
PDF
Envision it Webinar - Extranet Identity Management and Authentication for Sha...
PDF
SharePointFest 2013 Washington DC - SPT 103 - SharePoint 2013 Extranets: How ...
PPTX
Introduction to Azure AD and Azure AD B2C
PPTX
SharePoint Saturday Austin - Share point authentication and authorization
PPTX
NIC 2014 Modern Authentication for the Cloud Era
PDF
SharePoint Saturday The Conference DC - Are you who you say you are share poi...
PPTX
SharePoint Authentication And Authorization SPTechCon San Francisco
PPTX
SPSBE 2013 Claims for devs
PDF
SPCA2013 - It’s Me, and Here’s My ProofIdentity & Authentication in SharePoin...
PDF
O365Con18 - Hybrid SharePoint Deep Dive - Thomas Vochten
PPTX
Microsoft Teams community call - February 2020
PPTX
unit 1 Federated Identity Management_4.pptx
PPTX
Securing SharePoint Apps with OAuth
PDF
Envision it SharePoint Extranet Webinar Series - Extranet User Provisioning
PPTX
Securing a modern Web application with Entra ID
Extending Authentication and Authorization
Envision it SharePoint Extranet Webinar Series - Federation and SharePoint On...
SharePoint Saturday Utah - Do you claim to be from the Azure Sky?
Claim Based Authentication in SharePoint 2010 for Community Day 2011
Envision it SharePoint Extranet Webinar Series - Federation and Office 365
Envision it Webinar - Extranet Identity Management and Authentication for Sha...
SharePointFest 2013 Washington DC - SPT 103 - SharePoint 2013 Extranets: How ...
Introduction to Azure AD and Azure AD B2C
SharePoint Saturday Austin - Share point authentication and authorization
NIC 2014 Modern Authentication for the Cloud Era
SharePoint Saturday The Conference DC - Are you who you say you are share poi...
SharePoint Authentication And Authorization SPTechCon San Francisco
SPSBE 2013 Claims for devs
SPCA2013 - It’s Me, and Here’s My ProofIdentity & Authentication in SharePoin...
O365Con18 - Hybrid SharePoint Deep Dive - Thomas Vochten
Microsoft Teams community call - February 2020
unit 1 Federated Identity Management_4.pptx
Securing SharePoint Apps with OAuth
Envision it SharePoint Extranet Webinar Series - Extranet User Provisioning
Securing a modern Web application with Entra ID
Ad

More from Edin Kapic (19)

PPTX
Rx la joya oculta de Net
PPTX
Personal Branding for Developers
PPTX
SharePoint Saturday Stockholm 2015 - Building Maintainable and Testable Share...
PPTX
ESPC14 Social Business Value Demystified
PPTX
Maintainable Testable SharePoint Components SPSBE 2014
PPTX
MVP Open Day 2014 - Hacking Human Behaviour
PPTX
SPS Stockholm 7 Key Things for Building a Highly-Scalable SharePoint 2013 App
PPTX
7 Key Things for Building a Highly-Scalable SharePoint 2013 App
PPTX
Social Business Value Demystified: Real-World Experiences
PPTX
BcnDevCon13 - No Designer? No Problem!
PPTX
BcnDevCon12 - Una vuelta por Orchard CMS
PPTX
BcnDevCon12 - CQRS explicado a mi compañero arquitecto
PPTX
Modelos de madurez de SharePoint
PPTX
SharePoint 2013 Novedades y más allá (Introducción de SUG.CAT)
PPTX
SUG.CAT First Monday Noviembre 2012
PPTX
JavaScript per a desenvolupadors de C#
PPTX
CatDotNet - Farmville para SharePoint
PPTX
Universidad de La Habana - SharePoint, Listas y XSLT
PPSX
SharePoint kao razvojna platforma za ASP.NET developere
Rx la joya oculta de Net
Personal Branding for Developers
SharePoint Saturday Stockholm 2015 - Building Maintainable and Testable Share...
ESPC14 Social Business Value Demystified
Maintainable Testable SharePoint Components SPSBE 2014
MVP Open Day 2014 - Hacking Human Behaviour
SPS Stockholm 7 Key Things for Building a Highly-Scalable SharePoint 2013 App
7 Key Things for Building a Highly-Scalable SharePoint 2013 App
Social Business Value Demystified: Real-World Experiences
BcnDevCon13 - No Designer? No Problem!
BcnDevCon12 - Una vuelta por Orchard CMS
BcnDevCon12 - CQRS explicado a mi compañero arquitecto
Modelos de madurez de SharePoint
SharePoint 2013 Novedades y más allá (Introducción de SUG.CAT)
SUG.CAT First Monday Noviembre 2012
JavaScript per a desenvolupadors de C#
CatDotNet - Farmville para SharePoint
Universidad de La Habana - SharePoint, Listas y XSLT
SharePoint kao razvojna platforma za ASP.NET developere

Recently uploaded (20)

PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
history of c programming in notes for students .pptx
PPTX
L1 - Introduction to python Backend.pptx
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
Transform Your Business with a Software ERP System
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
System and Network Administraation Chapter 3
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
medical staffing services at VALiNTRY
PPTX
ai tools demonstartion for schools and inter college
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
System and Network Administration Chapter 2
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
history of c programming in notes for students .pptx
L1 - Introduction to python Backend.pptx
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Transform Your Business with a Software ERP System
PTS Company Brochure 2025 (1).pdf.......
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
CHAPTER 2 - PM Management and IT Context
Which alternative to Crystal Reports is best for small or large businesses.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
System and Network Administraation Chapter 3
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Softaken Excel to vCard Converter Software.pdf
medical staffing services at VALiNTRY
ai tools demonstartion for schools and inter college
Design an Analysis of Algorithms I-SECS-1021-03
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
System and Network Administration Chapter 2

ESPC15 - Extending Authentication and Authorization

  • 2. Edin Kapić • SharePoint Senior Architect & Team Lead in Sogeti, Barcelona • President of SharePoint User Group Catalonia (SUG.CAT) • Writer at Pluralsight • SharePoint Server Office Servers and Services MVP • Tinker & geek Email : mail@edinkapic.com Twitter : @ekapic LinkedIn : edinkapic
  • 3. Agenda • SharePoint, Authentication and Authorization • Claims • Claims-based Authentication • Claims-based Authorization • Claims Augmentation and Transformation • Claims Providers • Federated Authentication
  • 4. SharePoint, Authentication & Authorization SharePoint Web App Authentication Provider SPUser Site Collection Site SPRoleAssignment Authentication Authorization
  • 5. SharePoint Authentication • SharePoint doesn’t authenticate by itself • It keeps user details in the user profile database and user information lists in each site collection
  • 6. SharePoint Authorization • Associated with principals • Authenticated users • Groups (SharePoint or AD) • Claims • App Add-in identities
  • 7. SharePoint 2013 Authentication Options • “Classic” Windows • Deprecated • Claims-based • Windows tokens • FBA • SAML 1.1 Windows NTLM Token Windows NTLM Token FBA User SAML 1.1 Token SAML Token SPUser
  • 8. App Add-In Authentication • Add-ins have identity and can be assigned permissions • Add-ins are principals, together with users and groups • Add-in identity vs User identity • Add-ins use OAuth to authenticate • Low-trust add-ins use 3-legged OAuth (with ACS broker) • High-trust add-ins use self-signed tokens
  • 9. Claims • A claim is a piece of your identity, claimed by some authority • Claims are received upon presenting credentials to a claims provider • Claims providers are trusted • Examples • Employee badge • Name, department, clearance • Boarding passes • Flight, seat, class, name • Paper Wristbands • Ticket type, extra services
  • 10. Real-world Claims Identity Claims Specific Claims Claims encoded and signed Thanks to Spencer Harbar for the original idea
  • 11. SharePoint Claims Claim Type Claim Value Issuer Original Issuer http://schemas.xmlsoap.org /ws/2005/05/identity/claim s/nameidentifier demoekapic SharePoint SharePoint http://schemas.xmlsoap.org /ws/2008/06/identity/claim s/primarysid S-1-5-21-4067827123- 213488314-8760374- 513 SharePoint Windows http://schemas.xmlsoap.org /ws/2005/05identity/claims /upn ekapic@demo.local SharePoint Windows http://schemas.microsoft.co m/sharepoint/2009/08/clai ms/userid 0#.w|demoekapic SharePoint SecurityTokenService
  • 12. Claims Authentication • SharePoint augments and transforms the incoming claims to a normalized claims identity • Can be done by more than one claims provider • Decouples the authentication method from the user identity • For Windows incoming claims, there is a C2WTS (Claims to Windows Token Service) inside SharePoint 2013 to allow converting claims back into Windows identities
  • 13. Claims Authorization • Any claim can be used as a security principal in SharePoint • Flexible alternative to security groups • Claims can be surfaced by the identity token service or custom claims provider in People Picker
  • 14. Claim Providers • Augment and surface the claims for People Picker • Can be generic or bound to a Trusted Identity Provider • Inherits from SPClaimProvider abstract class
  • 15. Claims Augmentation and Surfacing Desired claim provider feature Implements Claims augmentation FillClaimsForEntity SupportsEntityInformation Claims surfacing in People Picker FillSchema FillClaimTypes FillClaimValueTypes FillEntityTypes Claims hierarchy in People Picker left side FillHierarchy SupportsHierarchy Resolving typed claims in People Picker FillResolve SupportsResolve Searching for claims in People Picker FillSearch SupportsSearch
  • 17. Federated Authentication • When the identity provider (IdP) is distinct from Windows (or FBA), we have federated authentication • Third-party Secure Token Service (STS) issues a security token with claims • This token is trusted by “clients” (Relying Parties, RP) as the STS is trusted by them • Tokens are digitally signed
  • 18. Federated Authentication • ID cards or passports are real-world examples of federated authentication
  • 19. Federated Identity Providers • Microsoft Active Directory Federation Services (ADFS) • Microsoft Azure Active Directory • Thinktecture IdentityServer • Shibboleth • IBM Federated Identity Manager • ...
  • 20. Active Directory Federation Services (ADFS) • Part of Windows Server features • Can transform AD into a federated IdP • Doesn’t manage users directly, but claims, identity providers and relying parties
  • 21. Azure Active Directory (AAD) • “AD and ADFS in the cloud” • Part of Azure / Office 365 offering • Underpins the most of the Office 365 / Azure hybrid architectures
  • 22. Thinktecture IdentityServer • Open-source IdP based on .NET and Windows Identity Framework • Modular architecture
  • 24. Summary • Claims-based identity and authorization are the only way forward, so make sure that you understand them well • You can decouple user authentication from the user identity • You can extend your user identity with additional claims • You can get your user identity from somewhere else
  • 25. Further Reading • Steve Peschka’s blog https://samlman.wordpress.com • Kirk Evans’ blog http://blogs.msdn.com/b/kaevans/ • A Guide to Claims-Identity and Access Control https://msdn.microsoft.com/en-us/library/ff423674.aspx

Editor's Notes

  • #2: In the two latest versions of SharePoint, we have seen how Claims-based authentication have taken over the traditional Windows and FBA authentication. Now we have federated identity with services such as Active Directory Federation Services (ADFS) and Azure Active Directory (AAD) and the authorization is handled by OAuth in the app model. But still, the vast majority of the deployments still use plain vanilla AD or LDAP authentication, without exploiting its flexibility and adaptability to a variety of scenarios. In this session you will learn how to extend the authentication and authorization with custom claim providers, claim augmentation and transformation. In this session you will: - Acquaint yourself with the authorization/authentication mechanism in SharePoint/Office 365 - Learn how to extend and adapt the authentication/authorization to fit your needs - Get to know the benefits of using ADFS for identity federation