teched 2014 - mvc5
TRANSCRIPT
![Page 2: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/2.jpg)
Co je ASP.NET MVC?
![Page 3: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/3.jpg)
Co je nového v MVC5?
Nové funkce MVC
Využití a integrace dalších technologií
![Page 4: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/4.jpg)
Změny v jádru MVC
Open source + NUGET
Vydávání MINOR verzí (5.0, 5.1, 5.2…)
Integrace do VS
„Drobnější změny“
![Page 5: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/5.jpg)
![Page 6: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/6.jpg)
![Page 7: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/7.jpg)
Demo –
ASP.NET WebApp
& Attribute Routing
![Page 8: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/8.jpg)
Změny v jádru MVC Attribute routing (MVC i WebAPI)
WebAPI – OData
• $select, $expand, $batch, $value
• Type-less support
– CORS
Podpora výčtů (Enums)
Podpora HtmlAttributes pro Editor/Display
![Page 9: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/9.jpg)
Demo –
EF & WebAPI OData
![Page 10: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/10.jpg)
Knihovny / technologie WIF - Claims Aware
Application
ASP.NET Identity
OWIN
Entity Framework
3rd Party Libraries
![Page 11: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/11.jpg)
Claims-Aware Applications .NET 4.5
Claim = tvrzení
– Uživatelské jméno, role, identifikátor, email,
efektivní oprávnění
Claims Identity = sada tvrzení
– Zjednodušeně IDictionary<string, string>
V .NET 4.5 bázové identity vychází z
ClaimsIdentity
![Page 12: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/12.jpg)
Claims-Aware Applications .NET 4.5
![Page 13: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/13.jpg)
Demo – Claims
![Page 14: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/14.jpg)
Windows Identity Foundation
Claims
Forms Authentication
Windows Auth Federated
Identity ASP.NET Identity
OWIN Security
![Page 15: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/15.jpg)
Federated Identity Provázání více systémů / delegace správy
účtů
Například: – Facebook
– Google Account
– ADFS
– Azure ACS
– Custom STS
![Page 16: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/16.jpg)
Demo –
Security Token Service
![Page 17: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/17.jpg)
IIS
System.Web
FormsAuthentication
…
WebAPI ASP.NET MVC …
![Page 18: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/18.jpg)
OWIN
IIS
OWIN
Self host Mono …
OWIN.Security Nancy
OWIN.Host.SystemWeb
System.Web
…
OWIN.SelfHost …
![Page 19: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/19.jpg)
OWIN • Open Web Interface - Standard
– Microsoft.Owin
– Bez vazby na IIS
– Self hosting (stejně jako WebAPI)
– Plánuje se podpora Mono a Worker Roles
– Lepší testovatelnost
– StartUp třída
– Project Katana
![Page 20: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/20.jpg)
ASP.NET Identity + OWIN Security
ASP.NET Identity
Persistence – Identit / claimů
– Skupin
– Loginů (lokálních i federated)
– Profilu
Rozšiřitelné (EF…)
OWIN Security
Vystavení a ověření tokenů – Přihlášení / odhlášení
Zpracování federated identity – OAuth, OpenID
• FB, Twitter, Google, LiveID
![Page 21: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/21.jpg)
ASP.NET MVC Internet App Security
OWIN
OAuth
OWIN
CookieAuth
ASP.NET Identity
EF Identity
Aplikace
DB
Claims
FB, Google,
LiveId…
![Page 22: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/22.jpg)
Demo –
ASP.NET MVC
Internet App Security
![Page 23: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/23.jpg)
![Page 24: TechEd 2014 - MVC5](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5586714ad8b42a32308b46ba/html5/thumbnails/24.jpg)
Kurzy Počítačové školy Gopas na
www.gopas.cz
Získejte tričko TechEd 2014 za vyplněný hodnotící dotazník.
Počítačová škola Gopas – Vaše IT škola života