Connecting Office 365 and Windows 8 HTML/JavaScript Apps
Connecting Office 365 and Windows 8 HTML/JavaScript Apps
Connecting Office 365 and Windows 8 HTML/JavaScript Apps
http://msdn.microsoft.com/en-   http://msdn.microsoft.com/en-
US/windows/apps/br229516.aspx   US/windows/apps/br229516.aspx   http://www.office365.com
Connecting Office 365 and Windows 8 HTML/JavaScript Apps
•
•
    •
    •
•

    •
Microsoft Online                 SharePoint
App
                               (STS)                         Online

          SAML Request
      1   (username, password)                                          http://www.wictorwilen.se/Post/How-to-do-active-
                                                                        authentication-to-Office-365-and-SharePoint-Online.aspx
      2   Response (security token)

                                                                        http://allthatjs.com/2012/03/28/remote-authentication-
      3   Send security token                                           in-sharepoint-online/

      4   Receive authentication cookies (rtFa, FedAuth)



      5   Send request including cookies (rtFa, FedAuth)
Connecting Office 365 and Windows 8 HTML/JavaScript Apps
Connecting Office 365 and Windows 8 HTML/JavaScript Apps
Connecting Office 365 and Windows 8 HTML/JavaScript Apps
http://msdn.microsoft.com/en-
us/library/windows/apps/br230301(v=vs.110).aspx
JavaScript                          C#                           Office 365

       1     Create new Helper


       2     New Helper


             Call signin method
       3     from helper
                                         4    Get token & cookie

                                         5    Return cookie
        6    “I’m authenticated!”

             “Awesome! Fetch me
        7    some data”
                                             I need something from
                                         8   you, here are the cookies

                                         9    Return data
             Here’s your data
Connecting Office 365 and Windows 8 HTML/JavaScript Apps
Connecting Office 365 and Windows 8 HTML/JavaScript Apps
Connecting Office 365 and Windows 8 HTML/JavaScript Apps
Connecting Office 365 and Windows 8 HTML/JavaScript Apps
Connecting Office 365 and Windows 8 HTML/JavaScript Apps
•
    •
    •
•
    •
    •
    •
    •
    •
    •
Connecting Office 365 and Windows 8 HTML/JavaScript Apps

More Related Content

PPTX
Office 365 busting the myths
PPTX
Intro: SharePoint 2013 Apps for IT Pros
PDF
Building SharePoint 2013 Apps - Architecture, Authentication & Connectivity API
PPTX
Access share point-2013-data-with-provider-hosted-apps
PPTX
Mobile for SharePoint with Windows Phone
PPTX
Building Apps for SharePoint 2013 by Andrew Connell - SPTechCon
PPTX
3 022
PPTX
Building your first Windows Phone 7 application for SharePoint
Office 365 busting the myths
Intro: SharePoint 2013 Apps for IT Pros
Building SharePoint 2013 Apps - Architecture, Authentication & Connectivity API
Access share point-2013-data-with-provider-hosted-apps
Mobile for SharePoint with Windows Phone
Building Apps for SharePoint 2013 by Andrew Connell - SPTechCon
3 022
Building your first Windows Phone 7 application for SharePoint

Similar to Connecting Office 365 and Windows 8 HTML/JavaScript Apps (20)

PPTX
Authentication Server
PDF
SPS Houston - Who Are You and What Do You Want? Working With OAuth in SharePo...
PPTX
Getting Enough REST? Understanding the SharePoint 2013 REST / ODATA Services
PPTX
Thomas vochten claims-spsbe26
PPTX
Identity & access management jonas syrstad
PPTX
Leveraging the azure cloud for your mobile apps
PPTX
Deep Dive into Office 365 API for Azure AD
PDF
Made for Mobile - Let Office 365 Power Your Mobile Apps
PPTX
Sp2013 overview biwug
PPTX
Sp2013 overview
PPTX
Understanding SharePoint Apps, authentication and authorization infrastructur...
PPTX
OAuth 2.0 and Mobile Devices: Is that a token in your phone in your pocket or...
PDF
SPTECHCON - Who are You and What Do You Want - Working with OAuth in SharePoi...
PPTX
Office apps in Office 365 - Napa the next big thing
PPTX
Securing SharePoint Apps with OAuth
PPTX
SharePoint and Office Development Workshop
PPTX
Apps for SharePoint
PPTX
Saas webinar-dec6-01
PPTX
SharePoint and Office 365 Development Workshop
PPTX
SPCA2013 - Developing Provider-Hosted Apps for SharePoint 2013
Authentication Server
SPS Houston - Who Are You and What Do You Want? Working With OAuth in SharePo...
Getting Enough REST? Understanding the SharePoint 2013 REST / ODATA Services
Thomas vochten claims-spsbe26
Identity & access management jonas syrstad
Leveraging the azure cloud for your mobile apps
Deep Dive into Office 365 API for Azure AD
Made for Mobile - Let Office 365 Power Your Mobile Apps
Sp2013 overview biwug
Sp2013 overview
Understanding SharePoint Apps, authentication and authorization infrastructur...
OAuth 2.0 and Mobile Devices: Is that a token in your phone in your pocket or...
SPTECHCON - Who are You and What Do You Want - Working with OAuth in SharePoi...
Office apps in Office 365 - Napa the next big thing
Securing SharePoint Apps with OAuth
SharePoint and Office Development Workshop
Apps for SharePoint
Saas webinar-dec6-01
SharePoint and Office 365 Development Workshop
SPCA2013 - Developing Provider-Hosted Apps for SharePoint 2013
Ad

More from Rene Modery (18)

PPTX
TeamsFest - Integrating Microsoft Teams and PowerApps
PPTX
Global Azure Bootcamp (Singapore) - Effectively using Azure DevOps in Microso...
PPTX
aOS Kuala Lumpur - Migrating to SharePoint Online - Real-life Experiences
PPTX
SharePoint Online vs On-premises vs Hybrid – 2016 edition
PPTX
Microsoft PowerApps
PPTX
Introduction to Azure Machine Learning
PPTX
SPBiz - Practical Advice for developing your SharePoint Roadmap
PPTX
Office 365 - always the latest and greatest or too fast for you?
PPTX
ESPC14 - T13 - Implementing a Hybrid SharePoint 2013 and Office 365 environment
PPTX
ESPC14 - T23 - SharePoint Online vs On-Premises vs Hosted - Making the Right ...
PPTX
Hybrid SharePoint 2013 and Office 365 environments for decision makers
PPTX
Automating Office 365 with PowerShell
PPTX
AIIM Webinar - SharePoint 2013 - clouding the issues?
PPTX
ShareConf 2013 - Implementierung von Hybridumgebungen mit SharePoint 2013 und...
PPTX
Office 365 and SharePoint 2013 Hybrid Environments
PPTX
SEASPC - Rene Modery - Creating an Employee Engaging Intranet Homepage
PPTX
Introduction to using jQuery with SharePoint
PPTX
Experiences with two AsiaPacific-wide SharePoint Deployments - SharePoint Con...
TeamsFest - Integrating Microsoft Teams and PowerApps
Global Azure Bootcamp (Singapore) - Effectively using Azure DevOps in Microso...
aOS Kuala Lumpur - Migrating to SharePoint Online - Real-life Experiences
SharePoint Online vs On-premises vs Hybrid – 2016 edition
Microsoft PowerApps
Introduction to Azure Machine Learning
SPBiz - Practical Advice for developing your SharePoint Roadmap
Office 365 - always the latest and greatest or too fast for you?
ESPC14 - T13 - Implementing a Hybrid SharePoint 2013 and Office 365 environment
ESPC14 - T23 - SharePoint Online vs On-Premises vs Hosted - Making the Right ...
Hybrid SharePoint 2013 and Office 365 environments for decision makers
Automating Office 365 with PowerShell
AIIM Webinar - SharePoint 2013 - clouding the issues?
ShareConf 2013 - Implementierung von Hybridumgebungen mit SharePoint 2013 und...
Office 365 and SharePoint 2013 Hybrid Environments
SEASPC - Rene Modery - Creating an Employee Engaging Intranet Homepage
Introduction to using jQuery with SharePoint
Experiences with two AsiaPacific-wide SharePoint Deployments - SharePoint Con...
Ad

Recently uploaded (20)

PDF
August Patch Tuesday
PDF
Hybrid model detection and classification of lung cancer
PDF
STKI Israel Market Study 2025 version august
PDF
Architecture types and enterprise applications.pdf
PPTX
Chapter 5: Probability Theory and Statistics
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PPT
What is a Computer? Input Devices /output devices
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PPTX
The various Industrial Revolutions .pptx
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
DOCX
search engine optimization ppt fir known well about this
PPTX
Modernising the Digital Integration Hub
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Getting Started with Data Integration: FME Form 101
PDF
sustainability-14-14877-v2.pddhzftheheeeee
August Patch Tuesday
Hybrid model detection and classification of lung cancer
STKI Israel Market Study 2025 version august
Architecture types and enterprise applications.pdf
Chapter 5: Probability Theory and Statistics
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
What is a Computer? Input Devices /output devices
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
A comparative study of natural language inference in Swahili using monolingua...
O2C Customer Invoices to Receipt V15A.pptx
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
The various Industrial Revolutions .pptx
Final SEM Unit 1 for mit wpu at pune .pptx
search engine optimization ppt fir known well about this
Modernising the Digital Integration Hub
Enhancing emotion recognition model for a student engagement use case through...
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Getting Started with Data Integration: FME Form 101
sustainability-14-14877-v2.pddhzftheheeeee

Connecting Office 365 and Windows 8 HTML/JavaScript Apps

  • 4. http://msdn.microsoft.com/en- http://msdn.microsoft.com/en- US/windows/apps/br229516.aspx US/windows/apps/br229516.aspx http://www.office365.com
  • 6. • • • • • •
  • 7. Microsoft Online SharePoint App (STS) Online SAML Request 1 (username, password) http://www.wictorwilen.se/Post/How-to-do-active- authentication-to-Office-365-and-SharePoint-Online.aspx 2 Response (security token) http://allthatjs.com/2012/03/28/remote-authentication- 3 Send security token in-sharepoint-online/ 4 Receive authentication cookies (rtFa, FedAuth) 5 Send request including cookies (rtFa, FedAuth)
  • 12. JavaScript C# Office 365 1 Create new Helper 2 New Helper Call signin method 3 from helper 4 Get token & cookie 5 Return cookie 6 “I’m authenticated!” “Awesome! Fetch me 7 some data” I need something from 8 you, here are the cookies 9 Return data Here’s your data
  • 18. • • • • • • • • •