Presentation is loading. Please wait.

Presentation is loading. Please wait.

SYNC DEMO “We bought Grandma a new TV. This is what my Dad did to her remote.”

Similar presentations


Presentation on theme: "SYNC DEMO “We bought Grandma a new TV. This is what my Dad did to her remote.”"— Presentation transcript:

1

2

3

4

5

6 SYNC

7

8

9 DEMO

10

11 “We bought Grandma a new TV. This is what my Dad did to her remote.”

12 app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType); app.UseCookieAuthentication(new CookieAuthenticationOptions { }); app.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions { Client_Id = "d71c88d1-f3d3-47e bc9af9a991", Authority = "https://login.windows.net/common/"https://login.windows.net/common/ }); [Authorize]

13 DEMO

14 HttpContext.GetOwinContext().Authentication.Challenge( new AuthenticationProperties { RedirectUri = "/" }, OpenIdConnectAuthenticationDefaults.AuthenticationType); HttpContext.GetOwinContext().Authentication.SignOut( OpenIdConnectAuthenticationDefaults.AuthenticationType, CookieAuthenticationDefaults.AuthenticationType);

15

16

17

18 https://graph.windows.net/contoso.com/users?api- version= &$filter=state eq ‘WA’ Graph URL (static) Specific entity type, such as users, groups, contacts, tenantDetails, roles, applications, etc. Tenant of interest – can be tenant’s verified domain or objectId. API version – “ ” is the Supported GA version Optional Odata query arguments: $filter, $top

19

20

21 DEMO

22

23

24

25 AuthenticationContext ctx= new AuthenticationContext("https://login.windows.net/contoso.onmicrosoft.com"); AuthenticationResult rez = await ctx.AcquireTokenAsync( "https://outlook.office365.com/", "5fc4a5a2-78d5-4d94-b890-a6e6b ");

26

27 DEMO

28

29

30

31

32

33

34

35

36


Download ppt "SYNC DEMO “We bought Grandma a new TV. This is what my Dad did to her remote.”"

Similar presentations


Ads by Google