Declarative authorization in REST services in SharePoint with F# and ServiceStack

9,415 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
9,415
On SlideShare
0
From Embeds
0
Number of Embeds
7,198
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Declarative authorization in REST services in SharePoint with F# and ServiceStack

  1. 1. Sergey Tihon Twitter: @sergey_tihon Blog: sergeytihon.wordpress.com
  2. 2. 2
  3. 3. 3
  4. 4.  AngularJS  Bacbone.js  Knockout  Ember.js  Kendo UI  Agility.js  ExtJS  …. 4
  5. 5. What about AuthZ and AuthN on REST services? Single Page App picture from Techbubbles
  6. 6. 6
  7. 7. 7
  8. 8.  ASP.NET Web API requires .NET 4.  Cannot be integrated in SharePoint 2010  Integration with SharePoint 2013 technically possible, but I do not know how ;) 8
  9. 9. Demis Bellot is a developer at Stack Exchange where he maintains StackOverflow Careers 2.0 Back Office Web & MQ services built on ServiceStack. He is the creator and project lead of ServiceStack. 9
  10. 10. 10
  11. 11. Good place for authentication check 11
  12. 12. F# is a strongly-typed, functional-first, open-source, cross-platform programming language for writing simple code to solve complex problems. 12
  13. 13. Lambda Calculus LISP F# 1.0 F# 2.0 ML • Microsoft Research (2005) OCaml Haskel F# Designed by Don Syme • Visual Studio 2010 F# 3.0 • Visual Studio 2012 13
  14. 14.  Cross-platform (Windows, Mac, Linux, Android, iPhone/iPad, JS/HTML5, GPU , FreeBSD)  Full stack support (F# for Build, Deployment, UI, Documentation, Testing)  Simplicity and mathematical elegance.  Rapid Prototyping  Fewer Bugs  Efficient Execution  Reduced Complexity  Information-Rich Programming with F# 3.0 14
  15. 15. “Design patterns are bug reports against your programming language” Peter Norvig, Director of Research at Google Inc 15
  16. 16. 16
  17. 17. 17
  18. 18.  Download source code  Generate key  Sign and rebuild  Result: 18
  19. 19. 19
  20. 20. 20
  21. 21. “The Global.asax file is an optional file used to declare and handle application and session-level events and objects for an ASP.NET web site running on an IIS Web Server.” Before: After: 21
  22. 22. 22
  23. 23. Steps 4,5 may be performed from Feature Receiver of WebApplication scope feature Step 4: Modify Global.asax Step 5: Update Web.config 23
  24. 24. 24
  25. 25. 25
  26. 26. 26
  27. 27. 27
  28. 28. 28
  29. 29. 1. Build signed version of Service Stack 2. Create a F# Library 3. Bootstrap Service Stack hosting 4. Modify Global.asax 5. Modify Web.config 6. Implement custom Authorization filter 29
  30. 30. Questions? The F# Software Foundation http://fsharp.org

×