├── CONTRIBUTING.md ├── starter-project ├── Microsoft Graph SDK ASPNET Connect │ ├── Views │ │ ├── _ViewStart.cshtml │ │ ├── Home │ │ │ ├── About.cshtml │ │ │ └── Graph.cshtml │ │ ├── Shared │ │ │ ├── Error.cshtml │ │ │ ├── _LoginPartial.cshtml │ │ │ └── _Layout.cshtml │ │ └── Web.config │ ├── Global.asax │ ├── favicon.ico │ ├── Content │ │ ├── test.jpg │ │ └── Site.css │ ├── Scripts │ │ └── _references.js │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ ├── App_Start │ │ ├── FilterConfig.cs │ │ ├── BundleConfig.cs │ │ ├── RouteConfig.cs │ │ └── Startup.Auth.cs │ ├── Helpers │ │ ├── IAuthProvider.cs │ │ └── SampleAuthProvider.cs │ ├── Models │ │ └── GraphService.cs │ ├── Startup.cs │ ├── Controllers │ │ ├── ErrorController.cs │ │ ├── HomeController.cs │ │ └── AccountController.cs │ ├── Global.asax.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── packages.config │ ├── TokenStorage │ │ └── SessionTokenCache.cs │ ├── Web.config │ └── App_GlobalResources │ │ ├── Resource.Designer.cs │ │ └── Resource.resx ├── README.md └── Microsoft Graph SDK ASPNET Connect.sln ├── Microsoft Graph SDK ASPNET Connect ├── Microsoft Graph SDK ASPNET Connect │ ├── Views │ │ ├── _ViewStart.cshtml │ │ ├── Home │ │ │ ├── About.cshtml │ │ │ └── Graph.cshtml │ │ ├── Shared │ │ │ ├── Error.cshtml │ │ │ ├── _LoginPartial.cshtml │ │ │ └── _Layout.cshtml │ │ └── Web.config │ ├── Global.asax │ ├── favicon.ico │ ├── Content │ │ ├── test.jpg │ │ └── Site.css │ ├── Scripts │ │ └── _references.js │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ ├── App_Start │ │ ├── FilterConfig.cs │ │ ├── BundleConfig.cs │ │ ├── RouteConfig.cs │ │ └── Startup.Auth.cs │ ├── Helpers │ │ ├── IAuthProvider.cs │ │ ├── SDKHelper.cs │ │ └── SampleAuthProvider.cs │ ├── Startup.cs │ ├── Controllers │ │ ├── ErrorController.cs │ │ ├── AccountController.cs │ │ └── HomeController.cs │ ├── Global.asax.cs │ ├── Web.Debug.config │ ├── Web.Release.config │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── packages.config │ ├── TokenStorage │ │ └── SessionTokenCache.cs │ ├── Web.config │ ├── Models │ │ └── GraphService.cs │ └── App_GlobalResources │ │ └── Resource.Designer.cs └── Microsoft Graph SDK ASPNET Connect.sln ├── aspnet-connect-sample.yml ├── LICENSE ├── .gitignore ├── README-Localized ├── README-zh-cn.md ├── README-zh-tw.md ├── README-ja-jp.md ├── README-pt-br.md ├── README-ru-ru.md ├── README-es-es.md ├── README-fr-fr.md └── README-de-de.md └── README.md /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-sample/master/CONTRIBUTING.md -------------------------------------------------------------------------------- /starter-project/Microsoft Graph SDK ASPNET Connect/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 | -------------------------------------------------------------------------------- /Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 | -------------------------------------------------------------------------------- /starter-project/Microsoft Graph SDK ASPNET Connect/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Microsoft_Graph_SDK_ASPNET_Connect.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /starter-project/Microsoft Graph SDK ASPNET Connect/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-sample/master/starter-project/Microsoft Graph SDK ASPNET Connect/favicon.ico -------------------------------------------------------------------------------- /Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Microsoft_Graph_SDK_ASPNET_Connect.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /starter-project/Microsoft Graph SDK ASPNET Connect/Content/test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-sample/master/starter-project/Microsoft Graph SDK ASPNET Connect/Content/test.jpg -------------------------------------------------------------------------------- /starter-project/Microsoft Graph SDK ASPNET Connect/Scripts/_references.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-sample/master/starter-project/Microsoft Graph SDK ASPNET Connect/Scripts/_references.js -------------------------------------------------------------------------------- /Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-sample/master/Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/favicon.ico -------------------------------------------------------------------------------- /Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/Content/test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-sample/master/Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/Content/test.jpg -------------------------------------------------------------------------------- /starter-project/Microsoft Graph SDK ASPNET Connect/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-sample/master/starter-project/Microsoft Graph SDK ASPNET Connect/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /starter-project/Microsoft Graph SDK ASPNET Connect/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-sample/master/starter-project/Microsoft Graph SDK ASPNET Connect/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/Scripts/_references.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-sample/master/Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/Scripts/_references.js -------------------------------------------------------------------------------- /starter-project/Microsoft Graph SDK ASPNET Connect/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-sample/master/starter-project/Microsoft Graph SDK ASPNET Connect/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /starter-project/Microsoft Graph SDK ASPNET Connect/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-sample/master/starter-project/Microsoft Graph SDK ASPNET Connect/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-sample/master/Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-sample/master/Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-sample/master/Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoftgraph/aspnet-connect-sample/master/Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /starter-project/README.md: -------------------------------------------------------------------------------- 1 | # Microsoft Graph Connect for ASP.NET 4.6 MVC app starter project 2 | This is the starter project used by the [ASP.NET 4.6 MVC app walkthrough](https://graph.microsoft.io/en-us/docs/get-started/aspnetmvc) in the Microsoft Graph documentation. 3 | 4 | ## Copyright 5 | Copyright (c) 2016 Microsoft. All rights reserved. 6 | -------------------------------------------------------------------------------- /starter-project/Microsoft Graph SDK ASPNET Connect/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | 3 | 4 | @using Resources 5 | 6 | @{ 7 | ViewBag.Title = Resource.About; 8 | } 9 |
@Resource.About_Description
-------------------------------------------------------------------------------- /starter-project/Microsoft Graph SDK ASPNET Connect/App_Start/FilterConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | using System.Web.Mvc; 3 | 4 | namespace Microsoft_Graph_SDK_ASPNET_Connect 5 | { 6 | public class FilterConfig 7 | { 8 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 9 | { 10 | filters.Add(new HandleErrorAttribute()); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | 3 | 4 | @using Resources 5 | 6 | @{ 7 | ViewBag.Title = Resource.About; 8 | } 9 |@Resource.About_Description
-------------------------------------------------------------------------------- /Microsoft Graph SDK ASPNET Connect/Microsoft Graph SDK ASPNET Connect/App_Start/FilterConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | using System.Web.Mvc; 3 | 4 | namespace Microsoft_Graph_SDK_ASPNET_Connect 5 | { 6 | public class FilterConfig 7 | { 8 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 9 | { 10 | filters.Add(new HandleErrorAttribute()); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /starter-project/Microsoft Graph SDK ASPNET Connect/Helpers/IAuthProvider.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. 3 | * See LICENSE in the source repository root for complete license information. 4 | */ 5 | 6 | using System.Threading.Tasks; 7 | 8 | namespace Microsoft_Graph_SDK_ASPNET_Connect.Helpers 9 | { 10 | public interface IAuthProvider 11 | { 12 | Task@Html.Raw(Resource.Graph_GetEmailAddress_Instruction)
13 | @using (Html.BeginForm("GetMyEmailAddress", "Home")) 14 | { 15 |@ViewBag.Email24 |
@Html.Raw(Resource.Graph_SendMail_Instruction)
28 | @using (Html.BeginForm("SendEmail", "Home")) 29 | { 30 |@Html.Raw(ViewBag.Message)
47 |@Html.Raw(Resource.Graph_GetEmailAddress_Instruction)
13 | @using (Html.BeginForm("GetMyEmailAddress", "Home")) 14 | { 15 |@ViewBag.Email24 |
@Html.Raw(Resource.Graph_SendMail_Instruction)
28 | @using (Html.BeginForm("SendEmail", "Home")) 29 | { 30 |@Html.Raw(ViewBag.Message)
47 |