Presentation is loading. Please wait.

Presentation is loading. Please wait.

HTTP config.Routes.MapHttpRoute( name: “TodosForTodoList", routeTemplate: "api/todolists/{id}/todos", defaults: new { controller = “todolists”,

Similar presentations


Presentation on theme: "HTTP config.Routes.MapHttpRoute( name: “TodosForTodoList", routeTemplate: "api/todolists/{id}/todos", defaults: new { controller = “todolists”,"— Presentation transcript:

1

2

3 HTTP

4

5

6

7

8

9

10

11 config.Routes.MapHttpRoute( name: “TodosForTodoList", routeTemplate: "api/todolists/{id}/todos", defaults: new { controller = “todolists”, action = “GetTodos” } ); public IEnumerable GetTodos() { … }

12 config.MapHttpAttributeRoutes(); [HttpGet("api/todolists/{id}/todos")] public IEnumerable GetTodos(int id) { … }

13 [HttpGet(“Demographics/{zipcode?}")] public Demographics Get(int? zipcode) { … } [HttpGet("people/{id:int}")] public Person Get(int id) { … } [HttpGet("people/{name:alpha}")] public Person Get(string name) { … } [HttpGet("Demographics/{zipcode=98052}")] public Demographics Get(int zipcode) { … }

14

15

16

17

18

19

20

21

22 Free Friends

23

24 Why no COOKI ES !?!

25

26 Authorization Grant Access Token Authorization Request Access Token

27 Protected Resource Client Authorization Server Authorization Endpoint Token Endpoint Browser CODE 3 302 1 2 user User

28 Protected ResourceClient Authorization Server Authorization Endpoint Token Endpoint CODE 2 access tokenrefresh token Client 1 client

29 Protected ResourceClient authorization server Authorization Endpoint Token Endpoint 1 access token 2 refresh token Client Authorization: Bearer

30 Protected ResourceClient Authorization Server Authorization Endpoint Token Endpoint 2 access tokenrefresh token Client 1 client

31 Protected Resource Client

32

33

34

35

36

37

38

39

40


Download ppt "HTTP config.Routes.MapHttpRoute( name: “TodosForTodoList", routeTemplate: "api/todolists/{id}/todos", defaults: new { controller = “todolists”,"

Similar presentations


Ads by Google