Post on 25-Feb-2016
description
transcript
Key technologies for Windows Store business appsRobert Green Technical Evangelistrogreen@microsoft.com, @rogreen_ms
AgendaDataSecurity and authenticationTestingDeployment
Data storage options
Local data Remote data
Application data APIs (Local or roaming)HTML5web storage
Indexed DBExtensible storage engine
3rd party databases
SQL serverSQL AzureOther
Application data APIsUse it for settings and unstructured data files Provides a local and roaming data store Files have no size limit Roaming files and settings are limited per package in overall size, as defined by ApplicationData.RoamingStorageQuota Available for all languages
Extensible storage engineUse for structured and unstructured data ISAM storage technology Store data in tables and retrieve it using indexed or sequential cursor navigation Only C/C++ APIs are provided, but you can wrap calls in a WinRT object for use by any language
IndexedDBUse it for structured and indexed data storage Designed to hold simple values and hierarchical objects ISAM storage technology Records consist of key-value pairs that can be indexed Each app has a quota of 250MB Available in JavaScript
SQLiteIn process library implementing a self-contained, serverless, zero-configuration, transactional SQL database engine Database contained in a single file Small memory footprint Free and open source • www.sqlite.org
SQLite for Windows Runtime extension for C#/VB/C++ developers
Existing servicesThrough the cloud
Directly on-premise
Sockets• Datagram• MessageWeb• TCP stream• StreamWeb
HTTP• HttpClient/
HttpReponseMessage
• WinJS.XHR• XmlHttpRequest
AtomPub/SyndicationData Services
• ASMX• WCF• OData
SQL ServerDynamicsSAPOther
Synchronization framework for Windows Runtime
SQL ServerSync ServiceOData
App
SQLite
Demo
SQLite and synchronization framework
AuthenticationMeeting enterprise standards
Integrated Windows authentication
Enterpriseauthentication and private network
App certificate‒My and Root stores
Certificates
Multi-factor authentication
Credential picker and shared user certifications
Federal ADFS authentication
Web authentication broker
Single sign on Live, Facebook, etc.
Web authentication broker
CertificatesCreate/install/import/enroll certificates Use classes in Windows.Security.Cryptography.Certificates namespace Each Windows Store app has its own certificate storage Declare sharedUserCertificates capability to access certs and keys on a smart card
Demo
Authentication
Data protectionDataProtectionProvider class in Windows.Security.Cryptography.DataProtection namespace Protect and unprotect methods Simple way to encrypt and decrypt data
Algorithms and keysWindows.Security.Cryptography.Core namespace Encryption, signing, and hashing Symmetric and asymmetric keys Algorithm providers HashAlgorithmProvider MacAlgorithmProvider SymmetricKeyAlgorithmProvider AsymmetricKeyAlgorithmProvider KeyDerivationAlgorithmProvider
Manual testing with Test Manager 2012Requirements: Visual Studio 2012 Pro or above team foundation server Validate app based on test suite or do exploratory testing Connect to Windows 8 device and run app File bugs and attach screenshots Test Manager records your actions Works on both x86 and ARM devices
Remote testingDownload Remote Tools for Visual Studio 2012 x86, x64, and ARM versions Debug app from Visual Studio Review prompt to acquire a developer license on a remote device Visual Studio packages and deploys the app and launches it on remote device
Demo
Remote testing
Self-Service Portal (SSP)
Sideload from customer infrastructure
LOB Windows Store app delivery
Windows RT
Windows 8 (x86)
Download from Windows Store
Public apps
Management infrastructure cloud
Custom LOB appsapplication delivery
Preparing apps for IT direct distributionSign with trusted certificate Certificate must be trusted on all machines that will deploy the app Publisher name in certificate must match publisher name in app Run the Windows App Cert Kit Validates technical compliance of the app Validate the app’s capabilities Check for usage of appropriate capabilities • privateNetworkClientServer, documentsLibrary,
enterpriseAuthentication, sharedUserCertificates
Preparing machines for IT direct distributionGroup policy set to install all trusted apps Allows install of side loaded apps App must be signed by a certificate that chains to Trusted Publisher App signing certificates are trusted Installation and update by IT-based process Can only be run on enterprise side and loading enabled devices Machine must be enabled for side loading to launch apps Windows 8 Enterprise or Server Edition AND domain joined Windows 8 Professional, Windows RT, non-domain joined Enterprise, activate a secondary product key
Demo
Deployment
Resources
Related sessions2-104 Building Windows 8 LOB apps3-002 Building awesome HTML apps in Blend for Windows 83-006 Designing awesome XAML apps in Visual Studio and Blend for Windows 8 and Windows Phone 83-017 Unit testing Windows Store apps3-123 Security in Windows Store apps
• Develop: http://msdn.microsoft.com/en-US/windows/apps/br229512
• Design: http://design.windows.com/
• Samples: http://code.msdn.microsoft.com/windowsapps/Windows-8-Modern-Style-App-Samples
• Videos: http://channel9.msdn.com/Windows
Resources
Please submit session evals by using the Build Windows 8 appor at http://aka.ms/BuildSessions
© 2012 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.