Advertisement
Guest User

Untitled

a guest
Aug 16th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. POST http://example.com/token HTTP/1.1
  2. User-Agent: Fiddler
  3. Content-Type: x-www-form-urlencoded
  4. Host: example.com
  5. Content-Length: 73
  6.  
  7. grant_type=password&username=example@example.com&password=examplePassword
  8.  
  9. HTTP/1.1 200 OK
  10. Cache-Control: no-cache
  11. Pragma: no-cache
  12. Content-Type: application/json;charset=UTF-8
  13. Expires: -1
  14. Server: Microsoft-IIS/10.0
  15. X-Powered-By: ASP.NET
  16. Date: Tue, 16 Aug 2016 12:04:39 GMT
  17. {
  18. "access_token": "xxxx",
  19. "token_type": "bearer",
  20. "expires_in": 17999,
  21. "refresh_token": "xxxx",
  22. ".issued": "Tue, 16 Aug 2016 12:04:38 GMT",
  23. ".expires": "Tue, 16 Aug 2016 17:04:38 GMT"
  24. }
  25.  
  26. var result = await _signInManager.PasswordSignInAsync(model.UserName, model.Password, model.RememberMe, shouldLockout: false);
  27.  
  28. public Task<SignInStatus> PasswordSignInAsync(string userName, string password, bool isPersistent, bool shouldLockout) on `SignInManager<,>` and make a web call across to the security server.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement