John Hazen Principal Program Manager Lead Microsoft Corporation

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Preface Demo A Quick Thank You How Did We Do It?
Windows 8 (1) (2) (3) Windows 8 (1) (2) (3)
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
demo Default WANGPSLookup Default WANGPS.
Multitenant Model Request/Response General Model.
Announcing Demo Announcing.
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
Windows 8 (1) (2) (3) Windows 8 (1) (2) (3)
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Connect with life Connect with life
demo Receive Inventory Export Parse and Normalize.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.

DataModel VisualizationExternal Assets Workbook Excel Services API BrowserRich Apps EWA JSOMBrowser REST BrowserRich Apps.
MIX 09 4/17/2018 4:41 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
WebView: Bringing the web to your app
Build data-driven collection and list apps using XAML
Security in Windows Store apps
Power your app with Live services
What web developers need to know when building Metro style apps
Возможности Excel 2010, о которых следует знать
Understanding Wi-Fi Direct in Windows 8
Title of Presentation 11/22/2018 3:34 PM
Deep dive on app data roaming
Title of Presentation 12/2/2018 3:48 PM
Using Windows Runtime and SDK to build Metro style apps
File type associations and AutoPlay
1/3/2019 1:21 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Dave Weston Senior SDET Microsoft Corporation
Introducing Metro style device apps
Create experiences that span devices
Create rich, data-driven Web apps with ASP.NET 4.5 Web Forms
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Windows 8 Security Internals
Microsoft Build /20/ :42 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
Under the hood: Installation and updates for Metro style apps
Leveraging existing code in Metro style apps
PENSACOLA ENERGY WORK PLAN OCTOBER 10, 2016
Title of Presentation 5/12/ :53 PM
Шитманов Дархан Қаражанұлы Тарих пәнінің
The complete developer's guide to the SkyDrive API
Title of Presentation 5/24/2019 1:26 PM
5/24/2019 6:44 PM 1/8/18 Bell #10 In a world governed by the gods, is there any room for human will? Do human choices make a difference? EXPLAIN © 2007.
Title of Presentation 7/24/2019 8:53 PM
WCL425 App Compat for Nerds Chris Jackson.
Presentation transcript:

John Hazen Principal Program Manager Lead Microsoft Corporation 6/1/2019 8:16 PM APP-476T Code with confidence: dynamic web content in Metro style apps using HTML5 John Hazen Principal Program Manager Lead Microsoft Corporation © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Agenda Customer expectations for Metro style apps Blending Windows Runtime and dynamic web content New mechanisms built on familiar concepts Demo and coding examples You’ll leave with examples of how to Confidently integrate dynamic web content in your app Easily authenticate your app with online services using OAuth

The Windows Runtime is easy and powerful Stored Data Network Access Web Camera User Location Encrypted Data Photo Library USB Drive Home Group And lots more…

Users expect dynamic content Windows Runtime Stored Data Network Access Web Camera Web Services IM User Location Encrypted Data Photo Library Data Cloud Services RSS Feeds USB Drive Home Group And lots more… SMS

demo innerHTML call

Who do you trust? Content you trust Untrusted content You generated it You tested it You know you are not malicious Untrusted content Unknown source Innocent mistakes Risk of malicious intent

Familiar techniques Content you trust Untrusted content Wrap in an iframe Content you trust You generated it You tested it You know you are not Untrusted content Unknown source Innocent mistakes Risk of malicious intent

Using <iframe> to separate content Trusted content from local package Untrusted content not in local package http:// ms-wwa:///

Using <iframe> to separate content Local context Trusted content from local package Web context Untrusted content not in local package ms-wwa:/// http:// Windows Runtime innerHTML validation Remote source not permitted Same as browser <iframes> No Windows Runtime W3C API

Using local code in a web context Local context Trusted content from local package Web context Trusted content that must interact directly with untrusted content ms-wwa:/// ms-wwa-web:/// Windows Runtime innerHTML validation Remote source not permitted Same as browser <iframes> No Windows Runtime W3C API

A familiar communication mechanism Local context Trusted content from local package Web context Untrusted content not in local package ms-wwa:/// http:// http:// postMessage Windows Runtime innerHTML validation Remote source not permitted Same as browser <iframes> No Windows Runtime W3C API

Using Script in a local context innerHTML and related operations If script elements are found, the operation fails Blocking accidental inclusion of script Intent to use script can be expressed in code Remote source references not permitted Use web context iframes for remote code <script src=http://contoso.com/script.js>

Local context vs. Web context demo Local context vs. Web context

Recap Local context Web context Full access to Windows Runtime Default context for your app Helps avoid accidental script execution ms-wwa:// protocol Web context Works like the browser No access to Windows Runtime http:// and https://, as well as ms-wwa-web:///

Authentication using OAuth Easy and consistent user experience Simple APIs for authentication

Socialite and MSDK sample demo Web authentication Socialite and MSDK sample

Recap Web Authentication Broker Simple invocation Consistent user experience No direct access to user credentials Great samples in the SDK

Review

Dynamic web content enriches your apps when used wisely.

Windows 8 makes is easy to separate code you trust from code you don’t trust.

Windows 8 provides simple mechanisms for proper authentication to great services.

Build great apps. Build confidence.

Related sessions APP-512T : The web-to-Windows journey: turning your web assets into a Windows app APP-929T: Best practices for writing safe and secure Metro style apps using HTML5 APP-740T : Metro style apps using HTML5 from start to finish PLAT-894T: Seamlessly interacting with web and local data APP-784T: Power your app with Live services PLAT-581T: Making apps social and connected with HTTP services

Further reading and documentation Secure Development of Metro style apps with HTML5 http://go.microsoft.com/fwlink/?LinkId=228386

thank you Feedback and questions http://forums.dev.windows.com Session feedback http://bldw.in/SessionFeedback

6/1/2019 8:16 PM © 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.