the microsoft conference 2014download.microsoft.com/download/0/4/a/04af9f4f-54f2-4eaa... · 2018....
TRANSCRIPT
![Page 1: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/1.jpg)
The Microsoft Conference 2014
ROOM E
![Page 2: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/2.jpg)
本セッションの目的とゴール
本セッションでは、Contoso ドラッグ株式会社エリアマネージャ村松 健の課題を解決するため、次のソリューションを紹介します。
Microsoft Azure を活用した営業支援モバイルアプリ
![Page 3: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/3.jpg)
3
マイクロソフトのソリューションとその効果
売れ筋商品の把握
SQL Server 2014更新可能な列ストアインデックス
エリアマネージャー自身による自由なデータ分析
Power BI
クラウド
簡単な販売予測
Power BI for
Office 365
改善のための要件: エリアマネージャー村松健の場合
営業支援アプリでエリアマネージャの日常業務を一元化
Windows LOB アプリ
営業支援アプリでエリアマネージャの日常業務を一元化
• 訪問スケジュール、顧客情報、商品情報、売上情報など社内データへリンク
• 棚割りなどの現場写真、訪問レポートなどをサーバーへインプット
![Page 4: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/4.jpg)
The Microsoft Conference 2014
Microsoft Azure によるシステム構成
![Page 5: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/5.jpg)
開発言語
アプリケーションサービス
ネットワークサービス
コンピューティング
認証 システム連携 キャッシュ
データサービス
データ周辺サービス
仮想ネットワーク(VNet to VNet)
仮想ネットワーク(Site to Site)
仮想ネットワーク(Point to Site)
CDN キャッシュサービスバス キューBizTalkサービス
多要素認証Azure Active
Directory
アクセス コントロールサービス
DRサービス
Webサイト(PaaS)
クラウドサービス(PaaS)
仮想マシン(IaaS)
モバイルサービス(PaaS)
Blob テーブル SQLデータベース
マシンラーニング
StorSimple
メディアサービスVisual Studioオンライン
API管理 通知ハブ スケジューラ オートメーション サイト リカバリー
Intelligent Systems Service (IoT)
HPC
ExpressRoute(専用線)
Azureサーチ
Traffic Manager
RemoteApp
Azureバックアップ
HDInsight(Hadoop)
ドキュメントDB
Microsoft Azure 機能マップ
![Page 6: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/6.jpg)
Microsoft Azure システム構成
Microsoft Azure
③ BizTalk Hybrid
Connections
社内ネットワーク
SQL Server
その他のリソースSAP
< >
Hybrid Connection Manager
①マルチデバイス開発とバックエンドの共通化
②社内ドメインによるモバイルアプリの統合認証
③オンプレミスシステムとの連携
![Page 7: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/7.jpg)
The Microsoft Conference 2014
クラウドバックエンドの共通化
![Page 8: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/8.jpg)
モバイルサービスの利点
データベース
マルチデバイスに対応したバックエンドサービスを提供
認証 プッシュ通知 スケール オンプレミス連携
![Page 9: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/9.jpg)
モバイルサービス管理ポータル
バックエンド構成
マルチデバイス対応
プロジェクト入手
![Page 10: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/10.jpg)
Visual Studio プロジェクト概要
Mobile Services
![Page 11: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/11.jpg)
クロスプラットフォーム開発
“フル” ネイティブすべての API が使える
パフォーマンス高コンパイル済パッケージ
C#, .NET , Visual Studio既存資産やスキルを活用
iOS
Android
Xamarin の特徴
![Page 12: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/12.jpg)
Xamarin プロジェクトの入手
Xamarin
iOS 用プロジェクト
![Page 13: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/13.jpg)
Xamarin Studio プロジェクト概要
Mobile Services
![Page 14: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/14.jpg)
ASP.NET Web API バックエンドデバイス非依存の RESTful な HTTP サービスを提供
ASP.NET
Web API
iOSアプリ
Windows
ストアアプリ
Androidアプリ
Webブラウザ
JSON
XML
OData
マルチデバイス
Mobile Services
![Page 15: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/15.jpg)
The Microsoft Conference 2014
DEMOはじめての Mobile Services
![Page 16: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/16.jpg)
モバイルサービスの全体構成
Node.js Express
ASP.NET Web API
SQL Table Storage
Blob Storage
WNS & MPNS
APNS GCM
Mongo DB
Notification Hubs
ソース管理
Facebook Twitter Microsoft GoogleAzure Active
Directory
Windows ストア
iOS
Android
Xamarin
PhoneGap
Sencha
Windows Phone
iOS
Android
HTML 5/JS
クライアント
Hybrid Connections
REST A
PI
![Page 17: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/17.jpg)
The Microsoft Conference 2014
認証機能の追加
![Page 18: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/18.jpg)
Azure Active Directory
オンプレミスADから同期したユーザー
![Page 19: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/19.jpg)
Azure Active Directory と Mobile Services
Microsoft Azure
![Page 20: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/20.jpg)
Active Directory Authentication Library
Azure Active Directory によって保護されたリソースへのログインを可能に
企業ドメインリソースへのシングルサインオンを提供
Windows ストアアプリ、iOS/Android
クロスプラットフォームで利用可能
![Page 21: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/21.jpg)
モバイルアプリ側の認証コード例string authority = “https://login.windows.net/<テナント名>.onmicrosoft.com”;
string resourceURI = “https://サービス名.azure-mobile.net/login/aad";
string clientID = “<Azure Active Directory ポータルから入手した Client App ID>";
AuthenticationContext new AuthenticationContext
AuthenticationResult await
string
// Mobile Services にアクセストークンを付与
JObject JObject
MobileServiceUser await
MobileServiceAuthenticationProvider
Azure AD認証
![Page 22: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/22.jpg)
iPhone から Azure AD ログイン
![Page 23: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/23.jpg)
Azure AD + Mobile Services の認証フロー1) クライアントアプリが ADAL を使っ
てログインを試行。ユーザーが入力したクレデンシャル情報を Azure AD に送信
2) Azure AD は Mobile Services のためのアクセストークンとリフレッシュトークンのペアをADAL に返送
3) クライアントは、当該 アクセストークン を Mobile Service に渡し、Mobile Services トークンに変換して、セッションを継続3
2
1
![Page 24: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/24.jpg)
The Microsoft Conference 2014
DEMOAzure Active Directory によるMobile Services 認証
![Page 25: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/25.jpg)
The Microsoft Conference 2014
オンプレミス連携
![Page 26: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/26.jpg)
BizTalk サービス Hybrid Connections
BizTalk の知識は不要
特別なネットワーク構成は不要(VPN, firewall 成約等)
TCP/HTTP(S) による接続をサポート
Mobile Services
社内ネットワーク
SQL Server
BizTalk Hybrid
Connections
< >
Hybrid
Connection
Manager
その他のリソースSAP
Microsoft Azure
![Page 27: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/27.jpg)
The Microsoft Conference 2014
DEMOHybrid Connections によるオンプレミス連携
![Page 28: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/28.jpg)
まとめ
Microsoft Azure
③ BizTalk Hybrid
Connections
社内ネットワーク
SQL Server
その他のリソースSAP
< >
Hybrid Connection Manager
① マルチデバイス開発とクラウドバックエンドの共通化
② 社内ドメインによるモバイルアプリの統合認証
③ オンプレミスシステムとの連携
![Page 29: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/29.jpg)
関連リソース
http://azure.microsoft.com/ja-jp/services/mobile-services/
http://azure.microsoft.com/ja-jp/develop/mobile/
![Page 30: The Microsoft Conference 2014download.microsoft.com/download/0/4/A/04AF9F4F-54F2-4EAA... · 2018. 10. 12. · Azure AD + Mobile Services の認証フロー 1) クライアントアプリがADAL](https://reader035.vdocuments.site/reader035/viewer/2022071117/6002bad8f232d942e9544df1/html5/thumbnails/30.jpg)
© 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows 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.