Presentation is loading. Please wait.

Presentation is loading. Please wait.

Authenticate user AuthenticationContext aCtx = new AuthenticationContext(“https://sts.contoso100.com/adfs"); AuthenticationResult.

Similar presentations


Presentation on theme: "Authenticate user AuthenticationContext aCtx = new AuthenticationContext(“https://sts.contoso100.com/adfs"); AuthenticationResult."— Presentation transcript:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21 Authenticate user AuthenticationContext aCtx = new AuthenticationContext(“https://sts.contoso100.com/adfs"); AuthenticationResult result = await aCtx.AcquireTokenAsync(“https://target.com", clientID); Call the Service HttpClient httpClient = new HttpClient(); httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", result.AccessToken); //...

22

23

24

25

26

27

28

29

30

31

32

33

34

35 Browser App Token Endpoint ResourceAuthorization Endpoint

36

37

38

39 subhttp://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier oidhttp://schemas.microsoft.com/identity/claims/objectidentifier upnhttp://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn tidhttp://schemas.microsoft.com/identity/claims/tenantid

40

41

42 JSON Web Token Handler

43

44

45


Download ppt "Authenticate user AuthenticationContext aCtx = new AuthenticationContext(“https://sts.contoso100.com/adfs"); AuthenticationResult."

Similar presentations


Ads by Google